Skip to content

Instantly share code, notes, and snippets.

@hsaito
Created February 17, 2012 02:35
Show Gist options
  • Select an option

  • Save hsaito/1850044 to your computer and use it in GitHub Desktop.

Select an option

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