added emacsclient-wrapper to bin directory

This commit is contained in:
2012-02-06 00:34:16 +00:00
parent 1eca97e67c
commit 113e14634a

13
bin/emacsclient-wrapper Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Defaults
EMACSCLIENT="emacsclient"
ALTERNATE_EDITOR="nano"
# Set to binary bundled in Emacs.app if it exists
if [ -f "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient" ]; then
EMACSCLIENT="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient"
fi
# Execute emacsclient
exec $EMACSCLIENT --alternate-editor=$ALTERNATE_EDITOR "$@"