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

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

RE: [External] : add-hook without need for intermediate functions


From: uzibalqa
Subject: RE: [External] : add-hook without need for intermediate functions
Date: Fri, 09 Jun 2023 17:05:33 +0000

------- Original Message -------
On Saturday, June 10th, 2023 at 4:56 AM, Drew Adams <drew.adams@oracle.com> 
wrote:


> > 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)
> 
> 
> See `define-globalized-minor-mode'.
> 
> https://www.gnu.org/software/emacs/manual/html_node/elisp/Defining-Minor-Modes.html

I do not follow how to extract the information in your link to answer my 
question.
My focus is only about a simple minor mode rather than a globalised one. 




reply via email to

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