From 6b4ab640bc9842ebe263580742e6e7340c20b8e5 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 29 Jan 2019 19:22:26 -0500 Subject: [PATCH] Disable all themes before loading new theme --- emacs/init.org | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index ce784a4..3150cff 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -816,14 +816,16 @@ Display the column number in programming modes: (add-hook 'prog-mode-hook #'column-number-mode) #+END_SRC -Load up some tasty solarized themes: +Load up some tasty themes: #+BEGIN_SRC emacs-lisp (use-package solarized-theme) #+END_SRC -And also [[https://github.com/kunalb/poet][poet-theme]]: +How to disable all applied custom themes: #+BEGIN_SRC emacs-lisp - (use-package poet-theme) + (defun disable-all-themes () + (interactive) + (mapcar #'disable-theme custom-enabled-themes)) #+END_SRC A function to load a font, including overriding any theme settings for org-mode headers: @@ -868,6 +870,7 @@ A function to load a theme then override font settings: (list (intern (completing-read "Load custom theme: " (mapcar 'symbol-name (custom-available-themes)))))) + (disable-all-themes) (load-theme theme t) (jdormit/load-persisted-fonts) (persist-variable 'jdormit/theme theme))