Move emacs stuff into emacs.