Macro Commands
Keystrokes | Command name | Description |
|---|---|---|
C-x ( or F3 key | start-kbd-macro | Start macro definition. |
C-x ) or F4 key | end-kbd-macro | End macro definition. |
C-x e or F4 key | call-last-kbd-macro | Execute last macro defined. |
M-n C-x e | digit-argument and call-last-kbd-macro | Execute last macro defined n times. |
C-u C-x ( | universal-argument and start-kbd-macro | Execute last macro defined, then add keystrokes. |
(none) | name-last-kbd-macro | Name last macro you created (before saving it). |
(none) | insert-kbd-macro | Insert the macro you named into a file. |
(none) | load-file | Load macro files you’ve saved and loaded. |
(none) | macroname | Execute a keyboard macro you’ve saved. |
C-x q | kbd-macro-query | Insert a query in a macro definition. |
C-u C-x q | (none) | Insert a recursive edit in a macro definition. |
C-M-c | exit-recursive-edit | Exit a recursive edit. |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access