diff --git a/src/posts/0014-change-emacs-theme-automatically/index.org b/src/posts/0014-change-emacs-theme-automatically/index.org index 7227a6c..26bf9c6 100644 --- a/src/posts/0014-change-emacs-theme-automatically/index.org +++ b/src/posts/0014-change-emacs-theme-automatically/index.org @@ -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