]> git.eshelyaron.com Git - emacs.git/commitdiff
(project--keymap-prompt): Use help-key-binding face
authorDmitry Gutov <dmitry@gutov.dev>
Sat, 12 Aug 2023 00:34:53 +0000 (03:34 +0300)
committerDmitry Gutov <dmitry@gutov.dev>
Sat, 12 Aug 2023 00:34:53 +0000 (03:34 +0300)
* lisp/progmodes/project.el (project--keymap-prompt): Use
help-key-binding face and adjust the prompt to fit (bug#64799).

lisp/progmodes/project.el

index 2c5b07ce750317339ef285a96e7f65515e1421cc..24531d9d02eecfcac371b650abf2c2a5620c3a2f 100644 (file)
@@ -1828,9 +1828,13 @@ listed in the dispatch menu produced from `project-switch-commands'."
      (let ((key (if key
                     (vector key)
                   (where-is-internal cmd (list project-prefix-map) t))))
-       (format "[%s] %s"
-               (propertize (key-description key) 'face 'bold)
-               label)))
+       (if (facep 'help-key-binding)
+           (format "%s %s"
+                   (propertize (key-description key) 'face 'help-key-binding)
+                   label)
+         (format "[%s] %s"
+                 (propertize (key-description key) 'face 'bold)
+                 label))))
    project-switch-commands
    "  "))