added some first funcs to emacs mode