From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: mike hardy Newsgroups: gmane.emacs.help Subject: mode-aware fill-column? Date: Mon, 16 Sep 2002 20:45:40 GMT Organization: "We'd prefer you called it the 'Outfit'" Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032209759 11745 127.0.0.1 (16 Sep 2002 20:55:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2002 20:55:59 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17r2uS-00033C-00 for ; Mon, 16 Sep 2002 22:55:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17r2ul-0005Dz-00; Mon, 16 Sep 2002 16:56:15 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus v5.9.0/Emacs 21.0.102 X-Newsreader: Gnus v5.9.0/Emacs 21.0.102 X-Mailer: Gnus v5.9.0/Emacs 21.0.102 Original-Lines: 49 Original-NNTP-Posting-Host: 63.214.123.134 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread1.prod.itd.earthlink.net 1032209140 63.214.123.134 (Mon, 16 Sep 2002 13:45:40 PDT) Original-NNTP-Posting-Date: Mon, 16 Sep 2002 13:45:40 PDT Original-Xref: nntp.stanford.edu gnu.emacs.help:104961 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1516 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1516 Howdy - Using Emacs for personal editing I like text columns to wrap around 84 chars. But (some) ppl prefer to see 72-ish for posting to Usenet. I'd like to accomodate them if there is some automatic way of changing fill-column's value between the two. Say somehow using ~/.gnus.el to change it to 72 but all other times use 84 (and when exiting Gnus it reverts to 84 automatically)? Or maybe only use 84 when a buffer causes text-mode to start and at all other times use 72? Is this something I can use ~/.gnus.el to change? In poking around Info I see "set-fill-column" but I don't know anything about using LISP to detect the mode, execute "*fill*", etc., when I visit a buffer. It looks like I could just use "set-fill-column" when entering text-mode I could leave the fill* default at 72 and change it to 84 for text-mode (which Info intimates would be good only while in text-mode?). But I don't know how to pass a value to a function (or invoke the function) upon starting text-mode. This is what I'm using right now if it matters (~/.emacs): (setq-default major-mode 'text-mode) ;; turn on auto-fill: (add-hook 'text-mode-hook 'auto-fill-mode) (setq-default fill-column 74) ;(setq-default fill-column 82) Thanks... Mike -- ------------------------ mhardy_mail@NO_SPAM@yahoo.com Help Wanted: Psychic. You know where to apply.