summaryrefslogtreecommitdiff
path: root/.config/emacs/config.org
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-17 08:23:21 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-17 08:23:21 +0200
commit2dee61f2f10485da65c31f2a6c9d6c7f6ac736f3 (patch)
treed3e845deaa9551fad0f93e257eebd9a8d4f57894 /.config/emacs/config.org
parent732ac726808129afd35413008ac53f8bb577380f (diff)
emacs: Remove ‘mango-after-load-theme-hook’
Diffstat (limited to '.config/emacs/config.org')
-rw-r--r--.config/emacs/config.org26
1 files changed, 1 insertions, 25 deletions
diff --git a/.config/emacs/config.org b/.config/emacs/config.org
index 7dfde90..196754f 100644
--- a/.config/emacs/config.org
+++ b/.config/emacs/config.org
@@ -476,13 +476,7 @@ that’s what the ~mango-minibuffer-backward-kill~ is for.
:custom
(vertico-cycle t)
:init
- (vertico-mode)
- (add-hook
- 'mango-after-load-theme-hook
- (λ (face-spec-set
- 'vertico-current
- `((t (:background
- ,(face-attribute 'hl-line :background nil t))))))))
+ (vertico-mode))
#+END_SRC
@@ -913,24 +907,6 @@ custom theme. I do like to keep the older theme around though as a reference.
#+END_SRC
-There is one issue though. I like to have ~vertico~ use the same color when
-highlighting my current selection as I use to highlight the current line, and
-that changes with each theme I use. For this reason we need some advice around
-the ~load-theme~ function to fire a hook.
-
-#+BEGIN_SRC elisp
-
- (defvar mango-after-load-theme-hook nil
- "Hook called after ‘load-theme’ is run.")
-
- (defun mango--run-after-load-theme-hook (&rest unused)
- "Run the hooks in ‘mango-after-load-theme-hook’ after we load a new theme."
- (run-hooks 'mango-after-load-theme-hook))
-
- (advice-add 'load-theme :after #'mango--run-after-load-theme-hook)
-
-#+END_SRC
-
*** Fringes
It’s also nice to have fringes!