some necessary fixups to emacs