Skip to content

Instantly share code, notes, and snippets.

@timf
Created January 13, 2012 03:19
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 timf/1604410 to your computer and use it in GitHub Desktop.
Save timf/1604410 to your computer and use it in GitHub Desktop.
#!/bin/sh
CUSTOM_OSX="/Applications/Emacs.app/Contents/MacOS/Emacs"
EXE=`which emacs`
if [ `uname` == "Darwin" ]; then
if [ -f $CUSTOM_OSX ]; then
EXE=$CUSTOM_OSX
fi
elif [ -f /usr/bin/emacs-snapshot ]; then
EXE=/usr/bin/emacs-snapshot
fi
exec $EXE $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment