From: Amin Bandali Date: Sun, 13 May 2018 13:52:50 +0000 (-0400) Subject: [emacs] don't enable multiple themes at the same time X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/commitdiff_plain/ebec2c187be6db5fd02e244defcd25d5c27876c2 [emacs] don't enable multiple themes at the same time --- 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