I have tried setting
emacsclient -t, and to point to this wrapper:
#!/usr/bin/env dash emacsclient -t "$@"
But they don’t work. I get this error when I try
emacsclient: could not get terminal name emacsclient: error executing alternate editor ""
EDITOR=emacsclient VISUAL=emacsclient partially works; The file will be opened if I have an emacs client already (in that client), but not in the Julia REPL.