added emacs function file