diff options
| author | Dmitry Gutov | 2023-08-12 03:34:53 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2023-08-12 03:34:53 +0300 |
| commit | de093d49f233efbacb6b7f717692deb89a4f059c (patch) | |
| tree | b2ef1163796481abc8143673d4cc4d1022ca77f6 | |
| parent | 4fa75771d17800651cab6f1e97bc7fbb1f3e874b (diff) | |
| download | emacs-de093d49f233efbacb6b7f717692deb89a4f059c.tar.gz emacs-de093d49f233efbacb6b7f717692deb89a4f059c.zip | |
(project--keymap-prompt): Use help-key-binding face
* lisp/progmodes/project.el (project--keymap-prompt): Use
help-key-binding face and adjust the prompt to fit (bug#64799).
| -rw-r--r-- | lisp/progmodes/project.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 2c5b07ce750..24531d9d02e 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el | |||
| @@ -1828,9 +1828,13 @@ listed in the dispatch menu produced from `project-switch-commands'." | |||
| 1828 | (let ((key (if key | 1828 | (let ((key (if key |
| 1829 | (vector key) | 1829 | (vector key) |
| 1830 | (where-is-internal cmd (list project-prefix-map) t)))) | 1830 | (where-is-internal cmd (list project-prefix-map) t)))) |
| 1831 | (format "[%s] %s" | 1831 | (if (facep 'help-key-binding) |
| 1832 | (propertize (key-description key) 'face 'bold) | 1832 | (format "%s %s" |
| 1833 | label))) | 1833 | (propertize (key-description key) 'face 'help-key-binding) |
| 1834 | label) | ||
| 1835 | (format "[%s] %s" | ||
| 1836 | (propertize (key-description key) 'face 'bold) | ||
| 1837 | label)))) | ||
| 1834 | project-switch-commands | 1838 | project-switch-commands |
| 1835 | " ")) | 1839 | " ")) |
| 1836 | 1840 | ||