Skip to content

Instantly share code, notes, and snippets.

@hsaito
Created February 17, 2012 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hsaito/1850044 to your computer and use it in GitHub Desktop.
Save hsaito/1850044 to your computer and use it in GitHub Desktop.
Emacs Client script for MacOS X
#!/bin/sh
/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n "$1"
ret=$?
if test ${ret} -eq 0
then
echo "Success"
else
/Applications/Emacs.app/Contents/MacOS/Emacs "$1" &
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment