getting the emacs bit to work