Prev
Advanced Emacs Features
Next
Keyboard macros
C-x (
Start recording a macro
C-x )
Finish recording
C-g
Abort recording
C-x e
Play back macro
M-x name-last-kbd-macro
Give latest recorded macro a name
M-x insert-kbd-macro
Insert macro into current file
For further information:
Keyboard macros