fast macros
- date: 2026-04-09
- tags: emacs
- identifier: 20260409T164716
just a short tip.
C-x ( begins recording a macro.
C-x ) stops recording, but I never use this keybinding.
(I include it for its mnemonic value when paired with its sibling.)
I almost always record macros for the saking of doing the same thing to a sequence of equivalently structured text.
try ending a macro with C-x e. this will
1. play back the macro once
2. allow you to press e indefinitely to play the macro again
therefore, this pattern becomes easy, and nearly as concise as the vim macros I so loved in those days:
- C-x (
- <do the thing>
- <position point for the next playback>
- C-x e
- e
- e...