From: Joel Reicher <joel.reicher@gmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: Minor Mode hooks
Date: Sun, 11 Aug 2024 21:52:59 +1000 [thread overview]
Message-ID: <86v807jmxw.fsf@gmail.com> (raw)
In-Reply-To: <t7RL97Dqlldk1CXA28ddhSf7HawnjISXZPVa81aoT3sHA8aBW5rnWJZQZRRzWDRAFiUFAi98ClWby9oKqup_3Utn3h0sH7xo9NJHtbjn6aM=@protonmail.com> (Heime's message of "Sat, 10 Aug 2024 09:59:56 +0000")
Heime <heimeborgia@protonmail.com> writes:
> I want to have outline-minor-mode activated when tema-minor-mode
> is activated. Should one do this using tema-minor-mode-hook or
> using (outline-minor-mode 1) and (outline-minor-mode 1) by
> testing the variable tema-minor-mode ?
>
> Where should the add hooks be defined, just anywhere within the
> file ?
Your question doesn't make sense to me, but I might not have
understood it.
Hooks are for users of a mode to do customisations. None of the
mode's own (non-customisable) functionality goes in a hook;
i.e. the author of a mode does not put anything in the hook except
for a default value that users may very well override (including
clearing the hook entirely).
Cheers,
- Joel
prev parent reply other threads:[~2024-08-11 11:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-10 9:59 Minor Mode hooks Heime
2024-08-11 11:52 ` Joel Reicher [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86v807jmxw.fsf@gmail.com \
--to=joel.reicher@gmail.com \
--cc=heimeborgia@protonmail.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.
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).