From 113e14634ae5b38777a32a36ad66014328cee107 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 6 Feb 2012 00:34:16 +0000 Subject: [PATCH] added emacsclient-wrapper to bin directory --- bin/emacsclient-wrapper | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/emacsclient-wrapper diff --git a/bin/emacsclient-wrapper b/bin/emacsclient-wrapper new file mode 100755 index 0000000..adadf5d --- /dev/null +++ b/bin/emacsclient-wrapper @@ -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 "$@"