[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Applying changes to outline-minor-mode-highlight
From: |
Eli Zaretskii |
Subject: |
Re: Applying changes to outline-minor-mode-highlight |
Date: |
Wed, 14 Jun 2023 18:40:15 +0300 |
> 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.