Emacs tip for keyboard macros: `C-u 0 F4' will run the macro as many times as possible. It's great for running it on every line in a buffer.