emacs macro commands

  • C-u C-x ( - append to the last macro
  • C-x C-k r - apply macro to region lines
  • M-j 0 C-x e - apply macro infinitely
  • C-x C-k C-i - insert counter
  • C-x C-k C-c - set counter
  • C-x C-k n - bind macro to name
  • M-x insert-kbd-macro - gives you elisp for the macro (must already be bound to a name)
  • C-x C-k C-e - edit macro

linux