Incrementing Macros in Emacs

Emacs macros are amazing. I was editing a document today, which started off as a list of sentences which I wanted to convert into numbered headlines, followed by some boilerplate text. Let's suppose the list looked like this: this is the first thing this is the second thing this is…

DNS Zone File Fun with Python and Emacs

Sometimes we're faced with a boring, manual, labourious job which really needs to be done, will take a fairly long time, and be pretty unpleasant. Whenever I'm faced with something like this, especially if it involves text, I try to make it interesting by setting myself the challenge of writing…