Skip to content

Instantly share code, notes, and snippets.

@trevorc
Created April 9, 2012 06:27
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 trevorc/2341940 to your computer and use it in GitHub Desktop.
Save trevorc/2341940 to your computer and use it in GitHub Desktop.
emacs startup script
#!/bin/sh
app=/Applications/Emacs.app/Contents/MacOS/Emacs
for arg; do
case $arg in
-version|--version|-f|-l|-eval|-batch|-nw) exec $app "$@"
esac
done
nohup $app "$@" &
osascript -e 'tell application "Emacs" to activate'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment