From 76d8609d64b33f3ca400915427ba36cd21b24389 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 7 Oct 2022 22:47:43 +0200 Subject: Emacs: fix dark/light theme switcher on non-macOS --- user/emacs/init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit 1.4.1