help-gnu-emacs
[Top][All Lists]
Advanced

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

add-hook without need for intermediate functions


From: uzibalqa
Subject: add-hook without need for intermediate functions
Date: Fri, 09 Jun 2023 15:48:58 +0000

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)





reply via email to

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