branch: externals/modus-themes
commit bea8a0436ef1b3196f20caeba71fb13942fd51e9
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Tweak the modus-themes--activate
---
 modus-themes.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/modus-themes.el b/modus-themes.el
index 970e47884e..49b9c3fddd 100644
--- a/modus-themes.el
+++ b/modus-themes.el
@@ -4594,10 +4594,9 @@ With non-nil FORCEFULLY, load the theme regardless."
   ;; NOTE 2025-09-29: We need to do this instead of pushing to the
   ;; `custom-known-themes' because loading the theme has the desired
   ;; side effect of adding the relevant `theme-properties' to it.
-  (unless (memq theme modus-themes--activated-themes)
-    (when (or forcefully (not (custom-theme-p theme)))
-      (load-theme theme t t)
-      (push theme modus-themes--activated-themes))))
+  (when (or forcefully (not (custom-theme-p theme)))
+    (load-theme theme t t))
+  (add-to-list 'modus-themes--activated-themes theme))
 
 (defun modus-themes--belongs-to-family-p (theme family)
   "Return non-nil if THEME has FAMILY property."

Reply via email to