-
Hello, I am using the version 4.3.0 of modus themes, and whenever I run I was wondering if this issue is caused by this package, or by the modus themes; and if I could fix this on my config by hooking some function to I am using this Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I assume You should be able to deal with it by additionally turning off and then on again |
Beta Was this translation helpful? Give feedback.
-
Ps: You ignored this:
|
Beta Was this translation helpful? Give feedback.
-
In case anyone else found this discussion and is interested in a possible fix: (add-hook 'modus-themes-after-load-theme-hook
(lambda ()
(dolist (buf (buffer-list))
(with-current-buffer buf
(when hl-todo-mode
(font-lock-flush)))))) I am sure it can be improved, but it seems to work. |
Beta Was this translation helpful? Give feedback.
hl-todo
doesn't define any faces, instead it defines a single variable, an alist, which maps keywords to color strings. The face that is used as the value of thefont-lock-face
text property isn't something likehl-todo-done-keyword
, but((:foreground #afd8af") hl-todo)
. (So actually there is one facehl-todo
, but it is always combined with an explicitly named color.I assume
modus-themes
does theme thehl-todo-keyword-faces
variable, and when you toggle a theme on or off, that does change the value of that variable, but doing so does not change the values of thefont-lock-face
text property across all text in all buffers.You should be able to deal with it by additionally turning off and…