I would like to set the shell EDITOR to use the existing running instance of GUI Emacs.
On macOS I can type open -a Emacs file to edit file that way. But how would EDITOR look to work that way?
What does not work: export EDITOR="emacs" # launches new gui emacs export EDITOR="emacsclient" # launches terminal emacs in current shell export EDITOR="open -a Emacs" # quits editing right away
openis probably spawning a process and exiting, which tricks programs that run an editor that it's done already.M-x emacs-versionreport the same thing when you runemacsvs when you runemacsclient?