summaryrefslogtreecommitdiff
path: root/dotfiles-darwin/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles-darwin/emacs/init.el')
-rw-r--r--dotfiles-darwin/emacs/init.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/dotfiles-darwin/emacs/init.el b/dotfiles-darwin/emacs/init.el
index c4b1e07..44bcda6 100644
--- a/dotfiles-darwin/emacs/init.el
+++ b/dotfiles-darwin/emacs/init.el
@@ -3,10 +3,12 @@
(when (executable-find "gls")
(setq insert-directory-program "gls"))
-(defun is-macos-dark ()
+(defun macos-dark-p ()
(interactive)
(string= (shell-command-to-string "defaults read -g AppleInterfaceStyle")
"Dark\n"))
-(run-at-time nil (* 15 60) 'maybe-switch-theme 'doom-one-light 'doom-one
- 'is-macos-dark)
+(add-hook 'after-init-hook
+ (lambda ()
+ (run-at-time nil (* 15 60) 'maybe-switch-theme awhk-day-theme
+ awhk-night-theme 'macos-dark-p)))