I am trying to open crontab -e in emacs terminal editor, but it keeps opening it as GUI.

After running crontab -e emacs windows pops up rather than opening it as terminal editor.

$ crontab -e
no crontab for alper - using an empty one
Waiting for Emacs...

I have following setup in my ~/.zshrc, and emacs always opens as terminal editor.

export EDITOR="emacsclient -c"

The way I open files:

emacsclient -qut -e '(progn (find-file "'$FILE'"))'

Use emacsclient -nw instead of -c.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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