Disable all hooks when activating the themes the first time

This commit is contained in:
Protesilaos Stavrou 2025-11-02 10:06:28 +02:00
parent 16c2c667c4
commit 67b6db32fb
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -3779,8 +3779,10 @@ Also see `modus-themes-get-themes'.")
;; `custom-known-themes' because loading the theme has the desired
;; side effect of adding the relevant `theme-properties' to it.
(unless (and (memq theme modus-themes--activated-themes)
(custom-theme-p theme))
(load-theme theme t t)
(custom-theme-p theme))
(let ((enable-theme-functions nil)
(modus-themes-after-load-theme-hook nil))
(load-theme theme t t))
(add-to-list 'modus-themes--activated-themes theme)))
(defun modus-themes--belongs-to-family-p (theme family)