summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2021-11-13 15:23:45 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2021-11-13 15:25:08 +0000
commit91659aa3715243eb3788b635b8e2c9df4b0713e1 (patch)
tree67d198f34bdbe6d68382bbf1ae7e03387b4d6918 /emacs
parent06caa0c4d9bace455a89752b073c82e04e73e080 (diff)
emacs: Only load themes when needed
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 8cddeef..8c233ca 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -76,8 +76,6 @@
(add-to-list 'doom-themes-base-faces
'(nobreak-space :inherit 'default :underline builtin)
t)
- (load-theme 'doom-one 'no-confirm 'no-enable)
- (load-theme 'doom-one-light 'no-confirm 'no-enable)
:ensure t)
(use-package evil
@@ -190,10 +188,10 @@ already enabled. The opposite happens if ENABLE-DARK-THEME-P
returns nil."
(if (funcall enable-dark-theme-p)
(unless (member dark-theme custom-enabled-themes)
- (enable-theme dark-theme)
+ (load-theme dark-theme :no-confirm)
(disable-theme light-theme))
(unless (member light-theme custom-enabled-themes)
- (enable-theme light-theme)
+ (load-theme light-theme :no-confirm)
(disable-theme dark-theme))))
(global-set-key (kbd "<C-tab>") 'other-window)