summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2022-10-07 22:47:43 +0200
committerAlan Pearce2022-10-07 22:47:43 +0200
commit76d8609d64b33f3ca400915427ba36cd21b24389 (patch)
treea2081f3a6edc9b8fa7b9c2ac5d0e46a3cb42d296 /user/emacs
parentfc451064dc7ed8237864ad186353f0eaaf1dd84e (diff)
downloadnixfiles-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.el2
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)