[emacs] don't enable multiple themes at the same time
authorAmin Bandali <amin@aminb.org>
Sun, 13 May 2018 13:52:50 +0000 (09:52 -0400)
committerAmin Bandali <amin@aminb.org>
Sun, 13 May 2018 13:52:50 +0000 (09:52 -0400)
init.org

index 06fa7e7..51bf6ed 100644 (file)
--- a/init.org
+++ b/init.org
@@ -319,6 +319,14 @@ in my shell.
   (exec-path-from-shell-copy-env "SSH_AUTH_SOCK"))
 #+end_src
 
+** Only one custom theme at a time
+
+#+begin_src emacs-lisp
+(defadvice load-theme (before clear-previous-themes activate)
+  "Clear existing theme settings instead of layering them"
+  (mapc #'disable-theme custom-enabled-themes))
+#+end_src
+
 ** Server
 
 Start server if not already running. Alternatively, can be done by