mirror of
https://github.com/protesilaos/modus-themes.git
synced 2026-09-10 07:16:30 -04:00
Disable all hooks when activating the themes the first time
This commit is contained in:
parent
16c2c667c4
commit
67b6db32fb
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue