From ebec2c187be6db5fd02e244defcd25d5c27876c2 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sun, 13 May 2018 09:52:50 -0400 Subject: [PATCH 1/1] [emacs] don't enable multiple themes at the same time --- init.org | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.20.1