My emacs 24 config, mostly taken over from @edtsech