I have emacsclient set as my $EDITOR. Yet, when I invoke the zsh function edit-command-line (C-x C-e) from Terminal I briefly see the Emacs frame open but then it closes immediately. How can I use emacsclient as the $EDITOR for edit-command-line?

Here is my how my $EDITOR variable is set: export EDITOR='emacsclient -t -c '

Here is my zsh config: bindkey '\C-x\C-e' edit-command-line

1 Answer 1


Restarting Emacs seems to have resolved this issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.