add utility functions to emacs