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. |
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.