
if which emacs > /dev/null
    set --global --export EDITOR emacs
else if which subl > /dev/null
    set --global --export EDITOR 'subl --wait'
else
    set --global --export EDITOR vim
end


if which emacs > /dev/null
    set --global --export EDITOR "emacsclient -t"
    set --global --export ALTERNATE_EDITOR ''

    alias e='emacsclient -t'
    alias ec='emacsclient -c'
    alias vim='emacsclient -t'
    alias vi='emacsclient -t'
else if which subl > /dev/null
    set --global --export EDITOR 'subl --wait'
else
    set --global --export EDITOR vim
end

Use Emacs in daemon mode
Use Emacs in daemon mode

lee-dohm/environment,lee-dohm/environment,lee-dohm/environment