etckeeper

Today I re-discovered etckeeper, which allows `/etc` to be version-controlled with a VCS (git in my case). I decided to spend some time figuring it out and stop worrying about messing things up each time I wanted to experiment with something. It also hooks in to the package manager during an upgrade or install, so that’s ones less thing to worry about.

etckeeper is written by Joey Hess, whose ikiwiki platform I’m already using to power this site. Check out his neat, minimalistic setup here. His blog is always an interesting read.

It took me less than an hour to figure things out the first time. Now I have a neat setup that runs itself: each change made to one of my dotfiles or configuration files automatically pushes the changes to the backup server and keeps it in sync.

Best of all, there is no lock-in with a third party provider, and no worry about unsupported platforms.

More emacs goodies

I dabbled in Emacs (a bit more than usual) last week: we had to do quite a few things at work that were difficult in a normal editor, but easy in this great one.

First up, I finally caught up with the amazing screencasts at Emacs Rocks. I’ve seen only the one on Multiple Cursors but my jaw dropped, and i’ve queued the rest for later viewing. It’s a pleasure to watch someone displaying such a complete mastery of his environment.

Next up is a nice one liner from the top answer to this StackOverflow question. In brief, running `highlight-lines-matching-regexp` and passing `.{81}` to it highlights all lines over 80 characters.

Uptime

Today I found out (from this tutorial ), that
Emacs has an uptime command of its own. Run `emacs-uptime` to see yours.

    
-UUU:**-Uptime.mdwn All L4 [0] (Fundamental)--Mon Mar 25 15:21---
7 days, 0 hours, 36 minutes, 31 seconds