unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* turning on minor modes from hooks
@ 2009-08-29 21:25 Dan Nicolaescu
  2009-08-29 23:18 ` Miles Bader
  0 siblings, 1 reply; 24+ messages in thread
From: Dan Nicolaescu @ 2009-08-29 21:25 UTC (permalink / raw)
  To: emacs-devel


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?





^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2009-09-04 21:23 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-29 21:25 turning on minor modes from hooks Dan Nicolaescu
2009-08-29 23:18 ` Miles Bader
2009-08-30  0:14   ` Drew Adams
2009-08-30  2:11     ` Miles Bader
2009-08-30  3:01       ` Drew Adams
2009-08-30  3:58         ` Miles Bader
2009-08-30  3:59     ` Stefan Monnier
2009-08-30  4:00       ` Miles Bader
2009-08-31  3:33   ` Richard Stallman
2009-08-31 14:36     ` Stefan Monnier
2009-08-31 22:15       ` Miles Bader
2009-08-31 23:32         ` Stefan Monnier
2009-09-01  0:17           ` Miles Bader
2009-09-01 12:16       ` Richard Stallman
2009-09-01 16:19         ` Stefan Monnier
2009-09-01 21:20           ` Richard Stallman
2009-09-01 23:23             ` Stefan Monnier
2009-09-03 13:47               ` Richard Stallman
2009-09-04 21:23                 ` Geoff Gole
2009-08-31 15:30     ` Daniel Colascione
2009-08-31 18:54       ` Tassilo Horn
2009-09-01 12:16         ` Richard Stallman
2009-08-31 23:43       ` Stefan Monnier
2009-09-01  2:07       ` Stephen J. Turnbull

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).