[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico ae788f718a 3/3: vertico-unobtrusive: Remap vert
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vertico ae788f718a 3/3: vertico-unobtrusive: Remap vertico-current face |
Date: |
Mon, 3 Jan 2022 10:57:52 -0500 (EST) |
branch: externals/vertico
commit ae788f718abf5969f0002ea404d0fcb4cf2790f4
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
vertico-unobtrusive: Remap vertico-current face
The highlighting of the single topmost candidate is not unobtrusive.
---
extensions/vertico-unobtrusive.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/extensions/vertico-unobtrusive.el
b/extensions/vertico-unobtrusive.el
index 6673356e1c..087c00515b 100644
--- a/extensions/vertico-unobtrusive.el
+++ b/extensions/vertico-unobtrusive.el
@@ -50,6 +50,7 @@
(cond
(vertico-unobtrusive-mode
(unless vertico-unobtrusive--orig-count
+ (push '(vertico-current . default) (default-value 'face-remapping-alist))
(setq vertico-unobtrusive--orig-count vertico-count
vertico-unobtrusive--orig-count-format vertico-count-format
vertico-count 1
@@ -59,6 +60,9 @@
(vertico-flat-mode 1))
(t
(when vertico-unobtrusive--orig-count
+ (setq-default face-remapping-alist
+ (remove '(vertico-current . default)
+ (default-value 'face-remapping-alist)))
(setq vertico-count vertico-unobtrusive--orig-count
vertico-count-format vertico-unobtrusive--orig-count-format
vertico-flat-format (nthcdr 4 vertico-flat-format)