Emacs' documentation uses a consistent notation for all key bindings, which is explained here:
A "key chord" is obtained by pressing two or more keys simultaneously. Key chords are denoted by separating all keys by dashes (-
). They usually involve modifier keys, which are put up front:
Other keys are simply denoted by their name, like:
a
key;Examples of key chords thus include:
"Key sequences" are sequences of keys (or key chords), which must be typed one after the other. They are denoted by separating all key (or chord) notations by a space.
Examples include:
Key chords using the Alt modifier can also be entered as a key sequence starting with ESC. This can be useful when using Emacs over a remote connection that does not transmit Alt key chords, or when these key combinations are captured e.g by a window manager.
Example:
M-x can be entered as ESC x.
The same notation that is described here can be used when defining key bindings in Emacs lisp files.
Example:
(global-set-key (kbd "C-x C-b") 'buffer-menu)
binds the key sequence C-x C-b to the command buffer-menu