adding .emacs function