use mate -w for VISUAL

This commit is contained in:
Sami Samhuri 2010-11-08 20:22:26 -08:00
parent 1a721185fb
commit d10914390b

View file

@ -46,7 +46,11 @@ if mac; then
/Users/sjs/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -s $(find /var/folders -name server -type s -uid $(id -u) 2>| /dev/null | grep emacs) $*
}
export EDITOR="vim"
export VISUAL="vim"
if which mate >/dev/null 2>&1; then
export VISUAL="mate -w"
else
export VISUAL="vim"
fi
elif linux && which emacs >/dev/null 2>&1; then
export EDITOR="emacs -nw"
export VISUAL="emacs"