unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Minor Mode that activates outline-minor-mode automatically
@ 2024-08-09 22:06 Heime
  0 siblings, 0 replies; only message in thread
From: Heime @ 2024-08-09 22:06 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

I have a minor-mode called "tema-minor-mode".  I want to activate "outline-minor-mode"
automatically them "tema-minor-mode" is enabled.  Does one do this via a hook ?
Meaning make a tema-minor-mode-hook and associate "outline-minor-mode" to it ?

There is also the possibility of doing

;;;###autoload
(define-minor-mode tema-minor-mode
  (if tema-minor-mode
      (outline-minor-mode 1)
    (outline-minor-mode 0)))

I also want to change the outline-minor-mode regexp patterns.
Should I call the commands before calling (outline-minor-mode 1)
or after ?





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-08-09 22:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-09 22:06 Minor Mode that activates outline-minor-mode automatically Heime

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).