branch: externals/doric-themes
commit 338604455c428437184636b0f8c41f9f25e20f6c
Author: Protesilaos <[email protected]>
Commit: Protesilaos <[email protected]>
Revert "Simplify doric-themes--enable-themes"
This reverts commit 5091e391ef2043a0a50d004d9d1a4bd5e032bba6.
---
doric-themes.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/doric-themes.el b/doric-themes.el
index 36d65f257f8..dff50911d2b 100644
--- a/doric-themes.el
+++ b/doric-themes.el
@@ -130,7 +130,8 @@ This is used by the commands `doric-themes-toggle',
(defun doric-themes--enable-themes ()
"Enable the Doric themes."
(dolist (theme doric-themes-collection)
- (load-theme theme :no-confirm :no-enable)))
+ (unless (memq theme custom-known-themes)
+ (load-theme theme :no-confirm :no-enable))))
(defun doric-themes--list-known-themes ()
"Return list of `custom-known-themes' matching `doric-themes--doric-p'."