Various GNU Emacs wizardry