From 87f4f115fa33a9bc9556eb3c2790b3bd663bc995 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 26 Jan 2017 16:57:40 -0800 Subject: [PATCH] [Emacs] Only load theme once at startup --- dotfiles/emacs.d/README.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 2b836706..3c479091 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -4852,8 +4852,6 @@ load-theme hook (See the heading below). (defun imalison:appearance (&optional frame) (setq font-use-system-font nil) (interactive (list nil)) - (unless (member imalison:dark-theme custom-enabled-themes) - (load-theme imalison:dark-theme t)) (spaceline-compile) (imalison:remove-fringe-and-hl-line-mode) (setq powerline-default-separator (random-choice '(butt slant wave)))) @@ -4864,6 +4862,8 @@ load-theme hook (See the heading below). (defun imalison:appearance-setup-hook (&rest args) (unless imalison:appearance-setup-done + (unless (member imalison:dark-theme custom-enabled-themes) + (load-theme imalison:dark-theme t)) (apply 'imalison:appearance args) (setq imalison:default-font-size-pt (face-attribute 'default :height)) (setq imalison:appearance-setup-done t)))