From 61534d72e9a2e1bc45b0e42246d2674022ea6554 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 2 Jun 2010 10:33:28 -0700 Subject: [PATCH] fix emacsclient, needs to be a function not an alias for some reason --- zsh/zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"