diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2025-01-25 21:52:27 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2025-01-26 08:59:55 +0000 |
| commit | f88d79c060c0067c590bcec2060b907de7c570cd (patch) | |
| tree | 9039ba0ba947d9bdea0e6d13ff9976dea4f6eded | |
| parent | 200ef2ea3921e1a9907777ba3b7b8a4c9cd241f8 (diff) | |
darwin/emacs: Load themes more reliably
| -rw-r--r-- | dotfiles-darwin/emacs/functions.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dotfiles-darwin/emacs/functions.el b/dotfiles-darwin/emacs/functions.el index 492e099..6ccc8f3 100644 --- a/dotfiles-darwin/emacs/functions.el +++ b/dotfiles-darwin/emacs/functions.el @@ -38,9 +38,9 @@ "Configure themes, including theme switching." (let ((day-theme (seq-random-elt (alist-get 'day my/themes))) (night-theme (seq-random-elt (alist-get 'night my/themes)))) - (when (custom-theme-p day-theme) + (when day-theme (load-theme day-theme :no-confirm :no-enable)) - (when (custom-theme-p night-theme) + (when night-theme (load-theme night-theme :no-confirm :no-enable)) (run-at-time nil (* 15 60) #'my/maybe-switch-theme day-theme night-theme #'my/macos-dark-p))) |
