all repos — nixfiles @ 56fd345c2e2abbf9e9a48e2b22df4851082c80fd

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

Emacs: fix mismatching ivy faces when switching dark/light modes

Alan Pearce
commit

56fd345c2e2abbf9e9a48e2b22df4851082c80fd

parent

a06ef5e5c6dbac4392f49c473c4ca6652b0551df

1 file changed, 3 insertions(+), 2 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -77,9 +77,9 @@ (dark-mode-theme 'modus-vivendi))
(defun my/set-dark-or-light-theme () (let ((appearance (plist-get (mac-application-state) :appearance))) (cond ((equal appearance "NSAppearanceNameAqua") - (load-theme light-mode-theme t)) + (counsel-load-theme light-mode-theme t)) ((equal appearance "NSAppearanceNameDarkAqua") - (load-theme dark-mode-theme t))))) + (counsel-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) (my/set-dark-or-light-theme)
@@ -253,6 +253,7 @@ (use-package amx
:config (setq amx-history-length 100)) (use-package counsel + :functions (counsel-load-theme) :commands (counsel-unicode-char) :general ("M-x" #'counsel-M-x))