all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: uzibalqa <uzibalqa@proton.me>
To: Drew Adams <drew.adams@oracle.com>
Cc: uzibalqa via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: RE: [External] : add-hook without need for intermediate functions
Date: Fri, 09 Jun 2023 17:05:33 +0000	[thread overview]
Message-ID: <IT9GiSn-XFjj6yyXB4gNbcW_of3nYJPuXK0vfje-T0uC53Co31m7CPPFOJrh1K6Bf2eFPvbAP0aBnrDMzmnLVhEHGjCBJA_jvO2USk-ObB8=@proton.me> (raw)
In-Reply-To: <SJ0PR10MB5488EFACC9A7E474DDE6DBC1F351A@SJ0PR10MB5488.namprd10.prod.outlook.com>


------- 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	other threads:[~2023-06-09 17:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='IT9GiSn-XFjj6yyXB4gNbcW_of3nYJPuXK0vfje-T0uC53Co31m7CPPFOJrh1K6Bf2eFPvbAP0aBnrDMzmnLVhEHGjCBJA_jvO2USk-ObB8=@proton.me' \
    --to=uzibalqa@proton.me \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.