about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-10-27 00:15:30 -0500
committerCase Duckworth2020-10-27 00:15:30 -0500
commitc768b2b7d5557ae46a275f666f7b24017b6b4485 (patch)
treef05545dd4723b9d66c43f4db81477891d4f52a4c
parentAdd news.gwene.org (diff)
downloademacs-c768b2b7d5557ae46a275f666f7b24017b6b4485.tar.gz
emacs-c768b2b7d5557ae46a275f666f7b24017b6b4485.zip
Disable the current theme before loading a new one
-rw-r--r--config.org7
1 files changed, 7 insertions, 0 deletions
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
274 :config 274 :config
275 (change-theme 'modus-operandi 'modus-vivendi)) 275 (change-theme 'modus-operandi 'modus-vivendi))
276#+END_SRC 276#+END_SRC
277*** Disable the current theme when a theme is interactively loaded
278This doesn't happen often, but I'll be ready when it does.
279#+begin_src emacs-lisp
280 (defadvice load-theme
281 (before disable-before-load (theme &optional no-confirm no-enable) activate)
282 (mapc 'disable-theme custom-enabled-themes))
283#+end_src
277** Modeline: [[https://github.com/Malabarba/smart-mode-line][smart-mode-line]] 284** Modeline: [[https://github.com/Malabarba/smart-mode-line][smart-mode-line]]
278#+BEGIN_SRC emacs-lisp 285#+BEGIN_SRC emacs-lisp
279 (use-package smart-mode-line 286 (use-package smart-mode-line