all repos — nixfiles @ 76d8609d64b33f3ca400915427ba36cd21b24389

System and user configuration, managed by nix and home-manager

Emacs: fix dark/light theme switcher on non-macOS

Alan Pearce
commit

76d8609d64b33f3ca400915427ba36cd21b24389

parent

fc451064dc7ed8237864ad186353f0eaaf1dd84e

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M user/emacs/init.eluser/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)