diff options
author | Alan Pearce | 2022-10-07 22:47:43 +0200 |
---|---|---|
committer | Alan Pearce | 2022-10-07 22:47:43 +0200 |
commit | 76d8609d64b33f3ca400915427ba36cd21b24389 (patch) | |
tree | a2081f3a6edc9b8fa7b9c2ac5d0e46a3cb42d296 /user/emacs | |
parent | fc451064dc7ed8237864ad186353f0eaaf1dd84e (diff) | |
download | nixfiles-76d8609d64b33f3ca400915427ba36cd21b24389.tar.lz nixfiles-76d8609d64b33f3ca400915427ba36cd21b24389.tar.zst nixfiles-76d8609d64b33f3ca400915427ba36cd21b24389.zip |
Emacs: fix dark/light theme switcher on non-macOS
Diffstat (limited to 'user/emacs')
-rw-r--r-- | user/emacs/init.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index 06a8c2d6..7538a37b 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -82,7 +82,7 @@ ((equal appearance "NSAppearanceNameDarkAqua") (load-theme dark-mode-theme t))))) (add-hook 'mac-effective-appearance-change-hook #'my/set-dark-or-light-theme) - (if (boundp 'mac-effective-appearance-change-hook) + (if (fboundp #'mac-application-state) (my/set-dark-or-light-theme) (load-theme light-mode-theme t))))) (if (eq window-system 'x) |