unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* add-hook without need for intermediate functions
@ 2023-06-09 15:48 uzibalqa
  2023-06-09 16:56 ` [External] : " Drew Adams
  2023-06-10  8:20 ` Platon Pronko
  0 siblings, 2 replies; 10+ messages in thread
From: uzibalqa @ 2023-06-09 15:48 UTC (permalink / raw)
  To: uzibalqa via Users list for the GNU Emacs text editor


I have seen that since Emacs 24.1 one does not need the intermediate 'turn-on-foo-mode' 
style functions when using hooks.

Does this apply to all modes, including minor modes ?

And thusly one can write

(add-hook 'emacs-lisp-mode-hook #'foo-minor-mode)





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

end of thread, other threads:[~2023-06-11  1:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-09 15:48 add-hook without need for intermediate functions uzibalqa
2023-06-09 16:56 ` [External] : " Drew Adams
2023-06-09 17:05   ` uzibalqa
2023-06-09 17:15     ` Drew Adams
2023-06-09 17:30       ` uzibalqa
2023-06-09 20:07       ` Emanuel Berg
2023-06-10 21:05         ` Drew Adams
2023-06-10  8:20 ` Platon Pronko
2023-06-10 15:21   ` uzibalqa
2023-06-11  1:37     ` Platon Pronko

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).