Taken from Bruce Durling's emacs config