all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.