Emacs: fix dark/light theme switcher on non-macOS
1 file changed, 1 insertion(+), 1 deletion(-)
jump to
M user/emacs/init.el → user/emacs/init.el
@@ -82,7 +82,7 @@ (load-theme light-mode-theme t)) ((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)