/Users/yaesposi/y/her.esy.fun/src/posts/0014-change-emacs-theme-automatically/index.org
This commit is contained in:
parent
03814d033f
commit
fa9cf38fcb
|
@ -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
|
I might change my mind and use the code of theme-changer to follow the
|
||||||
curve of the sun.
|
curve of the sun.
|
||||||
But for now, just using straight hours should be good enough.
|
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
|
#+BEGIN_SRC elisp
|
||||||
(defun y/update-theme ()
|
(defun y/update-theme ()
|
||||||
|
@ -42,7 +43,9 @@ But for now, just using straight hours should be good enough.
|
||||||
(t 'doom-laserwave))))
|
(t 'doom-laserwave))))
|
||||||
(when (not (equal doom-theme theme))
|
(when (not (equal doom-theme theme))
|
||||||
(setq doom-theme theme)
|
(setq doom-theme theme)
|
||||||
(load-theme doom-theme))))
|
(load-theme doom-theme)
|
||||||
|
(run-at-time (format ))
|
||||||
|
)))
|
||||||
|
|
||||||
(y/update-theme)
|
(y/update-theme)
|
||||||
;; try to update the theme every minute
|
;; try to update the theme every minute
|
||||||
|
|
Loading…
Reference in a new issue