adds closure mode for emacs