tags:

views:

312

answers:

1

If I know an emacs command name, says, "goto-line"; what if I want to query whether if there are any key-sequences bound to this command ?

And vice versa, given a key sequence, how can I find its command name ?

+20  A: 

You can get help for a command by typing

C-h f function-name

This will usually tell you if it has a standard key binding. Conversely, given a key sequence, you can type

C-h k key-sequence

To get the command that would run. For more help on getting help, you can type

C-h ?
Adam Rosenfield
Beat to the punch. D'oh.
dmckee
You can also do `C-h w <function name>` to know just where the key is, not the full documentation. Conversely, you can also do `C-h c <key sequence>` to just know what function is bound to a key sequence.
ShreevatsaR
Well this is an even better answer. Thanks !
Sake
also: C-h w is typically bound to where-is.
Cheeso
So, I can where-is where-is when I forget C-h w. That's great ! ;)
Sake