# Editing

if ! type emacsclient > /dev/null; then
    EDITOR="emacsclient"
else
    EDITOR="emacs"
fi

export EDITOR="${EDITOR} -nw"
export SUDO_EDITOR=$EDITOR
export ALTERNATE_EDITOR=""
export VISUAL="$EDITOR"
alias q="$EDITOR"
alias emacs="$EDITOR"

# Editing

if type emacsclient > /dev/null; then
    EDITOR="emacsclient"
else
    EDITOR="emacs"
fi

export EDITOR="${EDITOR} -nw"
export SUDO_EDITOR=$EDITOR
export ALTERNATE_EDITOR=""
export VISUAL="$EDITOR"
alias q="$EDITOR"
alias emacs="$EDITOR"

Fix incorrect check for emacsclient
editor: Fix incorrect check for emacsclient
