summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2018-05-13 09:52:50 -0400
committerAmin Bandali <amin@aminb.org>2018-05-13 09:52:50 -0400
commitebec2c187be6db5fd02e244defcd25d5c27876c2 (patch)
tree7ba40fbffc9169bc1a90c0d9a8ecc5eab7d8dbd1
parent51db62d880a52ad85f7f1e9f0e93f7404cd96ba9 (diff)
downloadconfigs-ebec2c187be6db5fd02e244defcd25d5c27876c2.tar.gz
configs-ebec2c187be6db5fd02e244defcd25d5c27876c2.tar.xz
configs-ebec2c187be6db5fd02e244defcd25d5c27876c2.zip
[emacs] don't enable multiple themes at the same time
-rw-r--r--init.org8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.org b/init.org
index 06fa7e7..51bf6ed 100644
--- 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