Add some util functions to emacs file