diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2021-12-11 19:23:24 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2021-12-11 19:23:24 +0000 |
| commit | 9225c38c80fb1a57bf7ff64ea580cedf5a9fd901 (patch) | |
| tree | cfd5fa2a4e0b83d1c3d8a839e8ab1277ab2d3468 | |
| parent | 0ab13ec1d17cdeacb042b9c935618e9f018d81b0 (diff) | |
emacs: Load and rotate themes in server mode
| -rw-r--r-- | dotfiles-darwin/emacs/init.el | 2 | ||||
| -rw-r--r-- | emacs/init.el | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dotfiles-darwin/emacs/init.el b/dotfiles-darwin/emacs/init.el index 184d681..d5cb41d 100644 --- a/dotfiles-darwin/emacs/init.el +++ b/dotfiles-darwin/emacs/init.el @@ -9,7 +9,7 @@ ;; Theme Management -(when window-system +(when (or window-system (daemonp)) (my/with-add-hook 'after-init-hook (run-at-time nil (* 15 60) #'my/maybe-switch-theme my/day-theme my/night-theme #'my/macos-dark-p))) diff --git a/emacs/init.el b/emacs/init.el index 4b6f4d9..0ef2e47 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -97,7 +97,7 @@ (defvar my/night-theme nil "Theme to use during the night.") -(when window-system +(when (or window-system (daemonp)) (require 'doom-themes) (setq my/day-theme 'doom-one-light |
