aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs/.config')
-rw-r--r--Emacs/.config/emacs/config.org9
1 files changed, 8 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index b1aaf59..8f0ac21 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -278,7 +278,14 @@ eyes too much.
(setq +oreo/theme (mod (+ 1 +oreo/theme) (length +oreo/theme-list)))
(+oreo/load-theme))
- (+oreo/load-theme))
+ (defun +oreo/sync-theme ()
+ (let ((hour (read (format-time-string "%H"))))
+ (setq +oreo/theme
+ (if (or (< hour 8) (> hour 18))
+ 1
+ 0))
+ (+oreo/load-theme)))
+ (run-at-time nil (* 60 60) #'+oreo/sync-theme))
#+end_src
** Font size
Adjust font sizes for my devices.