fix emacsclient with this new Emacs on OS X

This commit is contained in:
Sami Samhuri 2010-05-26 23:13:50 -07:00
parent b912f1bc7b
commit c57b901c21

View file

@ -34,12 +34,15 @@ fi
# default editors # default editors
if mac; then if mac; then
export EDITOR="emacsclient" # wtf, you must be kidding
export VISUAL="emacsclient" alias emacsclient="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient \
export MANPATH="/opt/local/lib/erlang/man:$MANPATH" -s \$(find /var/folders -name server -type s -uid $(id -u) 2>| /dev/null | grep emacs) \$*"
export EDITOR="emacsclient"
export VISUAL="emacsclient"
export MANPATH="/opt/local/lib/erlang/man:$MANPATH"
elif linux; then elif linux; then
export EDITOR="emacs -nw" export EDITOR="emacs -nw"
export VISUAL="emacs" export VISUAL="emacs"
fi fi