Is there any function to do this? something like the inverse of "describe-key"?
How can I get the keyboard shortcut for a given emacs command?
Try the command where-is
, for example:
M-x where-is find-file
You can try C-h w (it's bound to the where-is command).
Type M-x describe-function
or C-h f
then type in the function name you want to know about. It will display the key bindings associated to it.
In Lugaru's Epsilon Emacs, it is "describe-command".
© 2022 - 2024 — McMap. All rights reserved.
M-x where-is RET where-is RET
. – Whipping