summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2022-10-03 18:04:54 +0200
committerAlan Pearce2022-10-03 18:04:54 +0200
commit56fd345c2e2abbf9e9a48e2b22df4851082c80fd (patch)
treedd3f895488a6a50fe6c6359b4cd9d42e82580e4b /user/emacs
parenta06ef5e5c6dbac4392f49c473c4ca6652b0551df (diff)
downloadnixfiles-56fd345c2e2abbf9e9a48e2b22df4851082c80fd.tar.lz
nixfiles-56fd345c2e2abbf9e9a48e2b22df4851082c80fd.tar.zst
nixfiles-56fd345c2e2abbf9e9a48e2b22df4851082c80fd.zip
Emacs: fix mismatching ivy faces when switching dark/light modes
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 858aa98a..5ee80ad6 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -77,9 +77,9 @@
                 (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 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   :config (setq amx-history-length 100))
 
 (use-package counsel
+  :functions (counsel-load-theme)
   :commands (counsel-unicode-char)
   :general ("M-x" #'counsel-M-x))