major mode for EMACS