Hacker News new | ask | show | jobs
by euroderf 903 days ago
> C-h k runs the command describe-key. You do this and after that any command, and it will give you the explanation.

But what about the opposite direction ? Is there anything like an "apropos" command ?

4 comments

Also bound to C-h a

There is also C-h d (apropos-documentation)

Check out marginalia[1]. Whenever you press M-x, it will pop up a buffer showing all the commands (with most recent ones on top) along with their keybindings and a brief description of what they do.

Embark[2] is also cool. It will show all the possible commands relevant to where the cursor is at that moment. I bind it to C-c a.

[1] https://github.com/minad/marginalia [2] https://github.com/oantolin/embark

I usually use:

C-h f runs the command describe-function (found in global-map)

If the command is bound it has "It is bound to..."

I'll usually do C-h f (describe-function), then hit tab to make it build a list of all (interactive) functions, and then switch to that buffer and search for whatever I'm interested in.