Inlägg om regexp

The Simple-Minded Indentation Engine

I've written a few major-modes for Emacs over the years, and every time I start on a new one I take a look at the smie documentation and conclude that it seems too complicated to add a proper indentation engine for the mode.

This time however, I've had enough. It's time to get my hands dirty and write a major mode that utilizes smie.

Läs mer…

Printf Format Highlighting

Most of my work is done in either C or C++, so I frequently use the printf family of functions to write a wide variety of stuff to the display. Naturally, I'd like the format specifiers to stand out from the rest of the characters in the strings, so for the longest time I used this piece of elisp code to achieve that:

Läs mer…