History of 2024-03-02 Some tips about Emacs keyboard macros

2024-03-14
04:30 UTC Revision 2 . . . . mbork+categories (minor)
2024-03-02
05:09 UTC Revision 1 . . . . mborkSome time ago I had to create some rather repetitive code. These days I often use multiple cursors for such things, but for some reasons this time I decided to go the traditional route and use the built-in keyboard macros. Here’s the catch, though. When you want to use keyboard macros and insert an (incremented) number for every occurrence, you can type f3 (kmacro-start-macro-or-insert-counter) while recording the macro. What I needed, though, was to insert that number twice for every execution of the macro.