Emacs macro tip: press F3 during macro creation to insert an incrementing number. You can use kmacro-set-counter to set its initial value.
miniblog.
Related Posts
This is a really fun approach to mode based editing: a clutch! When it's depressed you're in insert mode, and release to go back to command mode.
Today I learnt that Emacs keyboard macros can just be strings in a keymap!
(global-set-key (kbd "C-c h") "hello")
Types the keys h, e, l, l, o in the current buffer, which might insert or do something else depending on the mode.
Shower thought: if you have a code formatter, you don't need to ever insert newlines yourself.
You could repurpose the enter key for something else entirely!
What would you use this large key for? My first idea is go-to-definition.