Skip to content

Instantly share code, notes, and snippets.

@jclosure
Created October 22, 2014 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jclosure/5c197f0dc0c33960179c to your computer and use it in GitHub Desktop.
Save jclosure/5c197f0dc0c33960179c to your computer and use it in GitHub Desktop.
Discover Your Keybindings In Emacs
An extremely useful thing to know in emacs is how to discover what keys are bound to which commands on your own.
If you know the name of the command -- goto-line. If you type 'C-h w' (Control+h and then w), Emacs will as you "Where is command: ". Type goto-line and hit enter, and it will tell you what keystrokes (if any) are bound to that command.
There are a bunch more similar features. 'C-h k' does the inverse -- asks you for a keystroke and then tells you the command it runs; 'C-h b' shows all current keybindings; 'C-h a' will search for a string, so you might type 'C-h a goto' to search for commands with "goto" in the name; 'C-h v' describes variables; 'C-h f' describes functions; etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment