diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2022-02-12 13:51:23 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2022-02-12 13:54:46 +0000 |
| commit | 6a5c0258141fc49b3b53db70e46f271ee7efc059 (patch) | |
| tree | 6474895c1b2ea4d8c53c0a052b3ec79add328a32 /dotfiles-darwin | |
| parent | b3162b3adb75dd7856329d7bebf8b91bcbbf47ed (diff) | |
emacs: Allow nil themes in ‘my/maybe-switch-theme’
Also, load themes separately.
Diffstat (limited to 'dotfiles-darwin')
| -rw-r--r-- | dotfiles-darwin/emacs/init.el | 2 |
1 files changed, 2 insertions, 0 deletions
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))) |
