unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Applying changes to outline-minor-mode-highlight
@ 2023-06-14 14:24 Heime
  2023-06-14 15:40 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Heime @ 2023-06-14 14:24 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

To change the highlighting of headings one changes the value of outline-minor-mode-highlight.

But the settings are not taking effect unless I disable outline-minor-mode and enable it again.
How can I change this code so that the changes are applied automatically ?

(defvar hkfocus-setting 3)

(defun hkfocus ()
   "todo"
   (interactive)

   (pcase hkfocus-setting
     (1 (setq outline-minor-mode-highlight nil)
        (setq hkfocus-setting 2))
     (2 (setq outline-minor-mode-highlight t))
     (3 (setq outline-minor-mode-highlight 'append))
     (4 (setq outline-minor-mode-highlight 'override)) ))






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-14 16:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-14 14:24 Applying changes to outline-minor-mode-highlight Heime
2023-06-14 15:40 ` Eli Zaretskii
2023-06-14 16:04   ` Heime
2023-06-14 16:10     ` Eli Zaretskii

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