Use "emacs -nw" not "emacs" as EDITOR

I should just read EDITOR... :)