[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/mct f051452: Remap hl-line-face, not 'hl-line' face

From: ELPA Syncer
Subject: [elpa] externals/mct f051452: Remap hl-line-face, not 'hl-line' face
Date: Fri, 12 Nov 2021 12:57:22 -0500 (EST)

branch: externals/mct
commit f051452e17d6e9d793c4682695b14f36ad2eeb74
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Remap hl-line-face, not 'hl-line' face
    This makes it more robust in case the user changes that customisation
    Though I guess we would be better off using our own overlay for
    highlighting the current candidate (I still need to figure out how to do
 mct.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mct.el b/mct.el
index c0aec6f..c0d72a5 100644
--- a/mct.el
+++ b/mct.el
@@ -249,12 +249,14 @@ Add this to `completion-list-mode-hook'."
     (display-line-numbers-mode 1)))
+(defvar hl-line-face)
 (defun mct--hl-line ()
   "Set up line highlighting for the completions' buffer.
 Add this to `completion-list-mode-hook'."
   (when (and (derived-mode-p 'completion-list-mode)
              (eq mct-completions-format 'one-column))
-    (face-remap-add-relative 'hl-line 'mct-hl-line)
+    (face-remap-add-relative hl-line-face 'mct-hl-line)
     (hl-line-mode 1)))
 ;; Thanks to Omar AntolĂ­n Camarena for recommending the use of

reply via email to

[Prev in Thread] Current Thread [Next in Thread]