mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-02 11:50:48 -08:00
Add docstring for propertize-description
This commit is contained in:
parent
6ca5819593
commit
ce4561c617
1 changed files with 4 additions and 0 deletions
|
|
@ -610,6 +610,10 @@ corresponding `which-key-special-key-face'."
|
|||
key-w-face))))
|
||||
|
||||
(defun which-key/propertize-description (description)
|
||||
"Add face to DESCRIPTION where the face chosen depends on
|
||||
whether the description represents a group or a command. Also
|
||||
make some minor adjustments to the description string, like
|
||||
removing a \"group:\" prefix."
|
||||
(let* ((desc description)
|
||||
(group-prfx (string-match-p "^group:" desc))
|
||||
(group (or group-prfx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue