move Emacs from https://gist.github.com/musinsky/413006