From c768b2b7d5557ae46a275f666f7b24017b6b4485 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 27 Oct 2020 00:15:30 -0500 Subject: Disable the current theme before loading a new one --- config.org | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config.org') diff --git a/config.org b/config.org index 3171abb..9305572 100644 --- a/config.org +++ b/config.org @@ -274,6 +274,13 @@ I don't like the customize interface, but I still sometimes use it when I'm not :config (change-theme 'modus-operandi 'modus-vivendi)) #+END_SRC +*** Disable the current theme when a theme is interactively loaded +This doesn't happen often, but I'll be ready when it does. +#+begin_src emacs-lisp + (defadvice load-theme + (before disable-before-load (theme &optional no-confirm no-enable) activate) + (mapc 'disable-theme custom-enabled-themes)) +#+end_src ** Modeline: [[https://github.com/Malabarba/smart-mode-line][smart-mode-line]] #+BEGIN_SRC emacs-lisp (use-package smart-mode-line -- cgit 1.4.1-21-gabe81