Created
April 8, 2011 01:02
-
-
Save dannluciano/909115 to your computer and use it in GitHub Desktop.
emacs file for open Emacs.app in Terminal.app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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