An Emacs major mode