diff --git a/zsh/zshrc b/zsh/zshrc index 8416c1a..cc07edc 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -35,8 +35,9 @@ fi # default editors if mac; then # wtf, you must be kidding - alias emacsclient="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient \ - -s \$(find /var/folders -name server -type s -uid $(id -u) 2>| /dev/null | grep emacs) \$*" + function emacsclient() { + /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="emacsclient" export VISUAL="emacsclient" export MANPATH="/opt/local/lib/erlang/man:$MANPATH"