add ALTERNATE_EDITOR for emacs