[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: any Emacs features to help keep code/comments under 80 columns width
From: |
Kai Großjohann |
Subject: |
Re: any Emacs features to help keep code/comments under 80 columns width? |
Date: |
Sat, 30 Nov 2002 18:19:29 +0100 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) |
ken <ken@cleveland.lug.net> 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)