From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: any Emacs features to help keep code/comments under 80 columns width? Date: Sat, 30 Nov 2002 18:19:29 +0100 Organization: University of Dortmund, Germany Sender: help-gnu-emacs-admin@gnu.org Message-ID: <84of87asbi.fsf@lucy.cs.uni-dortmund.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038677009 21082 80.91.224.249 (30 Nov 2002 17:23:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 30 Nov 2002 17:23:29 +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 18IBKy-0005Ts-00 for ; Sat, 30 Nov 2002 18:23:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18IBJ1-0003VD-00; Sat, 30 Nov 2002 12:21:27 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!fu-berlin.de!uni-berlin.de!pd951f5b7.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: pd951f5b7.dip.t-dialin.net (217.81.245.183) Original-X-Trace: fu-berlin.de 1038676769 26634526 217.81.245.183 (16 [73968]) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:cL4pUWOIjfHJZnb+ObeMvjQY4iQ= Original-Xref: shelby.stanford.edu gnu.emacs.help:107613 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:4164 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4164 ken writes: > (setq text-mode-hook 'turn-on-auto-fill) Don't do that! (At least, don't advise others to do it.) In general, a mode hook can contain many functions, and usually one wants to add a function (or, more rarely, remove one). Therefore, add-hook (and possibly remove-hook) is your friend. (add-hook 'text-mode-hook 'turn-on-auto-fill) -- ~/.signature is: umop ap!sdn (Frank Nobis)