From 6a5c0258141fc49b3b53db70e46f271ee7efc059 Mon Sep 17 00:00:00 2001 From: Grégoire Duchêne Date: Sat, 12 Feb 2022 13:51:23 +0000 Subject: emacs: Allow nil themes in ‘my/maybe-switch-theme’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also, load themes separately. --- dotfiles-darwin/emacs/init.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dotfiles-darwin/emacs/init.el') diff --git a/dotfiles-darwin/emacs/init.el b/dotfiles-darwin/emacs/init.el index d5cb41d..c64e5cc 100644 --- a/dotfiles-darwin/emacs/init.el +++ b/dotfiles-darwin/emacs/init.el @@ -11,5 +11,7 @@ (when (or window-system (daemonp)) (my/with-add-hook 'after-init-hook + (when my/day-theme (load-theme my/day-theme :no-confirm :no-enable)) + (when my/night-theme (load-theme my/night-theme :no-confirm :no-enable)) (run-at-time nil (* 15 60) #'my/maybe-switch-theme my/day-theme my/night-theme #'my/macos-dark-p))) -- cgit v1.2.3-70-g09d2