/Users/yaesposi/y/her.esy.fun/src/posts/0014-change-emacs-theme-automatically/index.org

This commit is contained in:
Yann Esposito (Yogsototh) 2020-09-22 08:04:33 +02:00
parent 03814d033f
commit fa9cf38fcb
Signed by untrusted user who does not match committer: yogsototh
GPG Key ID: 7B19A4C650D59646
1 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,7 @@ And also, I wanted that to follow my working hours and not really the sun.
I might change my mind and use the code of theme-changer to follow the
curve of the sun.
But for now, just using straight hours should be good enough.
So here is my piece of code I added to my doom-emacs configuration:
#+BEGIN_SRC elisp
(defun y/update-theme ()
@ -42,7 +43,9 @@ But for now, just using straight hours should be good enough.
(t 'doom-laserwave))))
(when (not (equal doom-theme theme))
(setq doom-theme theme)
(load-theme doom-theme))))
(load-theme doom-theme)
(run-at-time (format ))
)))
(y/update-theme)
;; try to update the theme every minute