emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/helm d3e3685afd 2/4: define new helm face for highlighting


From: ELPA Syncer
Subject: [nongnu] elpa/helm d3e3685afd 2/4: define new helm face for highlighting key bindings
Date: Wed, 25 Jun 2025 07:01:51 -0400 (EDT)

branch: elpa/helm
commit d3e3685afda512d3c26f2a8f1ea675a94ff62d73
Author: Ta Quang Trung <taquangtrungvn@gmail.com>
Commit: Ta Quang Trung <taquangtrungvn@gmail.com>

    define new helm face for highlighting key bindings
---
 helm-mode.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/helm-mode.el b/helm-mode.el
index 2cd05ca4c7..5f987ed1eb 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -299,6 +299,12 @@ Where FUNCTION is a function suitable for 
`helm-quit-and-find-file'.")
     '((t :inherit font-lock-property-name-face))
   "Face used to highlight annotations in completion."
   :group 'helm-mode)
+
+(defface helm-completions-key-binding
+  '((t :inherit font-lock-constant-face))
+  "Face used to highlight key binding in completion."
+  :group 'helm-mode)
+
 
 (defvar helm-comp-read-map
   (let ((map (make-sparse-keymap)))
@@ -1295,7 +1301,7 @@ is used."
     (let* ((key     (and (commandp sym) (where-is-internal sym nil 
'first-only)))
            (binding (and key (key-description key))))
       (when binding
-        (propertize (format " (%s)" binding) 'face 'help-key-binding)))))
+        (propertize (format " (%s)" binding) 'face 
'helm-completions-key-binding)))))
 
 (defun helm-completion-package-affixation (_completions)
   (lambda (comp)



reply via email to

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