How to get a list of commands starting with a specific key (combo) in Emacs?

I can use Ch c ( describe-key-briefly ) and type in a key combination, and it will return the function associated with it to me. But I would also like to type in only the key combination prefix and have a list of it and describe all the functions associated with key sequences, starting with it, for example, "all related keys starting with Cx ".

+6
editor emacs keyboard-shortcuts
source share
2 answers

Make a key combo Ch. For your Cx example, make Cx Ch. This also works with sub-cards, for example. Cx r Ch to see everything under Cx r

+14
source share

It's also not that every prefix key works this way (follow it with Ch to see the bindings).

Here are two additional resources that may help:

  • The describe-keymap , in help-fns+.el . But to use it, you need to have an accessible layout (for example, the value of a variable, for example ctl-x-map ). Unlike using Ch v in the keymap variable, the output is human-readable.

  • Icicles key completion . Just enter the prefix key, and then press S-TAB . The *Completions* buffer shows all possible completion options: keys plus their associated commands (or ... if they themselves are prefix keys). For multi-level prefix keys (for example, Cx r ), candidates include prefix keys (for example, the prefix key r to partially fill in the Cx prefix key). This way you can move up and down the keyboard hierarchy. And you can switch between candidates and press CM-RET on anyone to see their full help.

+1
source share

All Articles