emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Re: auto-fill-mode on or off?


From: Michael Olson
Subject: [emacs-wiki-discuss] Re: auto-fill-mode on or off?
Date: Tue, 13 Jun 2006 23:16:36 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

"Evan Monroig" <address@hidden> writes:

> On 6/14/06, Bastien <address@hidden> wrote:
>> "thomas knoll" <address@hidden> writes:
>> > 2. Auto-fill-mode is always on by default.
>>
>> ... and this is a good default.  The easy way is to turn it off for
>> specific modes only:
>>
>> (add-hook 'planner-mode-hook 'turn-off-auto-fill)
>
> I am curious about this, because I have the inverse problems: I would
> like to have it on by default, and have to add hooks for each modes I
> am interested in, like this
>
> (add-hook 'planner-mode-hook 'auto-fill-mode)

The following will accomplish that.

(add-hook 'planner-mode-hook 'turn-on-auto-fill)

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Project involvement: Emacs, Muse, Planner, ERC, EMMS

Attachment: pgp3Qs6sOKdzo.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]