From: Heime <heimeborgia@protonmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Applying changes to outline-minor-mode-highlight
Date: Wed, 14 Jun 2023 16:04:29 +0000 [thread overview]
Message-ID: <u0W57paDfxUoGl8lKccEy5E-eXMUoM9SRkNcR8PEGdBdzTAmBZNStAoFb_yasl3qZfVru-PJTRUB9WFS4D70Yeh1YQxXB1wZUN8MAgaHDls=@protonmail.com> (raw)
In-Reply-To: <83fs6uuk68.fsf@gnu.org>
------- 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 ?
next prev parent reply other threads:[~2023-06-14 16:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2023-06-14 16:10 ` Eli Zaretskii
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='u0W57paDfxUoGl8lKccEy5E-eXMUoM9SRkNcR8PEGdBdzTAmBZNStAoFb_yasl3qZfVru-PJTRUB9WFS4D70Yeh1YQxXB1wZUN8MAgaHDls=@protonmail.com' \
--to=heimeborgia@protonmail.com \
--cc=eliz@gnu.org \
--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).