# Editor settings
if emacsclient --version &> /dev/null; then
export ALTERNATE_EDITOR="vim"
- export EDITOR="emacsclient --create-frame"
- export EDITORBG="emacsclient --create-frame --no-wait"
+ export EDITOR="emacsclient --tty"
- # Disable emacs inside screen
if [[ "$TERM" == screen* ]]; then
- export EMACS_SERVER_FILE=
+ export EDITORBG="$EDITOR"
+ else
+ export EDITORBG="emacsclient --create-frame --no-wait"
fi
else
export EDITOR="vim"