meow-*-define-key
functions could leverage builtin (STRING . DEFN)
definitions
#537
Labels
enhancement
New feature or request
Both
define-key
andkeymap-set
accept the following forms as definitions (quoting from the docstring ofkeymap-set
):For whatever reason, I can't find this documented in the manual even in the description for
keymap-set
, otherwise I would link there. The best resource I found is Simple Menu Items (GNU Emacs Lisp Reference Manual).Although the docstring as quoted above says the
STRING
in(STRING . DEFN)
is "used only if the containing keymap has been created with a menu name",which-key
specifically supports and encourages the use ofSTRING
as the overriding description for a definition.Meow's custom
which-key
-like leader popup could leverage(STRING . DEFN)
to replace the+prefix
labels. FWIW, general.el also causes these+prefix
labels to appear everywhere because it doesn't handlewhich-key
properly.I think
which-key
does that here in alet*
binding:https://github.com/justbur/emacs-which-key/blob/4d20bc852545a2e602f59084a630f888542052b1/which-key.el#L1823-L1838
Excerpt:
The text was updated successfully, but these errors were encountered: