diff --git a/modus-themes.el b/modus-themes.el index 4a57941..35a5e4a 100644 --- a/modus-themes.el +++ b/modus-themes.el @@ -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)