Emacs Macros

Create macro:

  • C-x ( start recording macro
  • C-x ) stop recording macro

Executing macro:

  • C-x e
  • C-u 37 C-x e  execute macro 37 times

Name macro:

  • M-x name-last-kbd-macro

Export macro to buffer:

  • M-x insert-kbd-macro

Reference: