Emacs Principles, Command and Keys
Everything is a Command
In emacs, every keystroke executes a command. For example, when you type a key e, emacs actually runs the command
Any key or key combination sequence you press ultimately calls a command.
There are over 3 thousand commands in emacs by default.
Most commonly used commands have a keyboard shortcut, such as moving the cursor, opening file, copy paste, close a file, search text.
To run a command by name, type Alt+x followed by the command name.
- Execute a command by name
- Cancel a command in progress, or cancel unfinished keyboard keystroke sequence
Find What a Key Do
- Prompt to type a key shortcut, then show command name and doc bound to that key.
Find a Command's Key
- Prompt to type a command name, it'll shows the command's key, if any.
How to find a command
- Search command by name.
View Current Major Mode's Documentation
- Show current major mode's documentation.