fix emacsclient with this new Emacs on OS X
This commit is contained in:
parent
b912f1bc7b
commit
c57b901c21
1 changed files with 8 additions and 5 deletions
13
zsh/zshrc
13
zsh/zshrc
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue