fix emacsclient, needs to be a function not an alias for some reason
This commit is contained in:
parent
5a7b6a3db2
commit
61534d72e9
1 changed files with 3 additions and 2 deletions
|
|
@ -35,8 +35,9 @@ fi
|
||||||
# default editors
|
# default editors
|
||||||
if mac; then
|
if mac; then
|
||||||
# wtf, you must be kidding
|
# wtf, you must be kidding
|
||||||
alias emacsclient="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient \
|
function emacsclient() {
|
||||||
-s \$(find /var/folders -name server -type s -uid $(id -u) 2>| /dev/null | grep emacs) \$*"
|
/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 EDITOR="emacsclient"
|
||||||
export VISUAL="emacsclient"
|
export VISUAL="emacsclient"
|
||||||
export MANPATH="/opt/local/lib/erlang/man:$MANPATH"
|
export MANPATH="/opt/local/lib/erlang/man:$MANPATH"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue