emacs: added functions