[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
turning on minor modes from hooks
From: |
Dan Nicolaescu |
Subject: |
turning on minor modes from hooks |
Date: |
Sat, 29 Aug 2009 14:25:12 -0700 (PDT) |
Now that local variables can be used to reliably turn on minor modes,
maybe it would be a good idea to turn on minor modes from hooks.
For example now one has to do this to turn on auto-file-mode in
text-mode:
(add-hook 'text-mode-hook 'turn-on-auto-fill)
instead of just:
(add-hook 'text-mode-hook 'auto-fill-mode)
This avoids defining extra functions just for the purpose of being able
to call them from hooks.
Not sure how feasible is to have a clean implementation of such a feature...
WDYT?
- turning on minor modes from hooks,
Dan Nicolaescu <=
Re: turning on minor modes from hooks, Richard Stallman, 2009/08/30