emacs macro commands
C-u C-x ( - append to the last macroC-x C-k r - apply macro to region linesM-j 0 C-x e - apply macro infinitelyC-x C-k C-i - insert counterC-x C-k C-c - set counterC-x C-k n - bind macro to nameM-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