Use emacsclient. Set EDITOR=emacs.