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

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

Re: Applying changes to outline-minor-mode-highlight


From: Heime
Subject: Re: Applying changes to outline-minor-mode-highlight
Date: Wed, 14 Jun 2023 16:04:29 +0000

------- Original Message -------
On Thursday, June 15th, 2023 at 3:40 AM, Eli Zaretskii <eliz@gnu.org> wrote:


> > Date: Wed, 14 Jun 2023 14:24:05 +0000
> > From: Heime heimeborgia@protonmail.com
> > 
> > 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)) ))
> 
> 
> Try calling font-lock-flush.

Would I just call (font-lock-flush) after the pcase ?




reply via email to

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