Refine modus-themes--disable-themes (see 2b046ec)

This commit is contained in:
Protesilaos Stavrou 2023-01-05 05:09:16 +02:00
parent 76c9a218b8
commit 63e9e799f4
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -1077,9 +1077,10 @@ overrides."
(defun modus-themes--disable-themes ()
"Disable themes per `modus-themes-disable-other-themes'."
(if modus-themes-disable-other-themes
(mapc #'disable-theme custom-enabled-themes)
(mapc #'disable-theme (modus-themes--list-known-themes))))
(mapc #'disable-theme
(if modus-themes-disable-other-themes
custom-enabled-themes
(modus-themes--list-known-themes))))
(defun modus-themes-load-theme (theme)
"Load THEME while disabling other themes.