aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/config.org
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-10-01 15:33:01 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-10-01 16:24:42 +0100
commit791d50ae7ef07d1fc85d6ff9e0d63cf29d25283b (patch)
tree244479aba5e9c60dec529f830f43bce8361ef0f3 /Emacs/.config/emacs/config.org
parentbdb1b68b95b326dd941ea9dcbf229622acfa7875 (diff)
downloaddotfiles-791d50ae7ef07d1fc85d6ff9e0d63cf29d25283b.tar.gz
dotfiles-791d50ae7ef07d1fc85d6ff9e0d63cf29d25283b.tar.bz2
dotfiles-791d50ae7ef07d1fc85d6ff9e0d63cf29d25283b.zip
Emacs theme isn't synced to time, and is loaded after-init
Diffstat (limited to 'Emacs/.config/emacs/config.org')
-rw-r--r--Emacs/.config/emacs/config.org13
1 files changed, 3 insertions, 10 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index dd6fa25..6e56300 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -254,7 +254,8 @@ theme is in [[file:elisp/personal-light-theme.el][this file]].
#+begin_src emacs-lisp
(use-package custom
:defer t
- :commands +oreo/switch-theme
+ :commands (+oreo/load-theme)
+ :hook (after-init-hook . +oreo/load-theme)
:init
(setq custom-theme-directory (concat user-emacs-directory "elisp/"))
(defvar +oreo/theme-list `(personal-light personal-solarized))
@@ -281,15 +282,7 @@ theme is in [[file:elisp/personal-light-theme.el][this file]].
(setq +oreo/theme (mod (+ 1 +oreo/theme) (length +oreo/theme-list)))
(+oreo/load-theme))
- (defun +oreo/sync-theme ()
- (let ((hour (read (format-time-string "%H"))))
- (setq +oreo/theme
- (if (and (>= hour 8) (< hour 15))
- 0
- 1))
- (+oreo/load-theme)))
-
- (run-at-time nil (* 60 60) #'+oreo/sync-theme))
+ (+oreo/load-theme))
#+end_src
** Font size
Adjust font sizes for my devices.