Use emacs itself as the editor if the shell was run by it