Skip to content

Instantly share code, notes, and snippets.

@dannluciano
Created April 8, 2011 01:02
Show Gist options
  • Save dannluciano/909115 to your computer and use it in GitHub Desktop.
Save dannluciano/909115 to your computer and use it in GitHub Desktop.
emacs file for open Emacs.app in Terminal.app
#!/bin/sh
# Reference
# http://superuser.com/questions/199570/warnings-errors-with-emacs-cocoa-23-2-on-osx-terminal
EMACS_PATH=/Applications/Emacs.app/Contents/MacOS/Emacs
if [ $(id -u) = "0" ]; then
sudo $EMACS_PATH $* &
else
$EMACS_PATH $* &
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment