use mate -w for VISUAL
This commit is contained in:
parent
1a721185fb
commit
d10914390b
1 changed files with 5 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue