Created
January 18, 2010 07:03
-
-
Save shigeyas/279846 to your computer and use it in GitHub Desktop.
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 | |
# | |
# Open text editor Emacs with given file name. If no Emacs running, it launches | |
# automatically on MacOS X. | |
# | |
# save this file as whatever filename you like (I'm using 'e'), put in somehere | |
# in the path (I use ${HOME}/bin), make it executable (chmod +x e) then 'hash -r' or 'rehash' | |
# | |
if [ -x /usr/bin/open ]; then # may be MacOS | |
/usr/bin/open -a Emacs $* | |
else | |
# Launch via emacsclient if not on MacOS X | |
emacsclient $* | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment