-
-
Save apg/657226 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
# I use this on Linux: | |
#!/bin/bash | |
# e - launch emacsclient or server. | |
ps ax | grep "emacs --daemon" | grep -v "grep" | |
if [ "$?" -eq "1" ] | |
then | |
/usr/bin/emacs --daemon | |
fi | |
/usr/bin/emacsclient -c $@ | |
On OSX, it probably works to do something similar, substituting paths: | |
/Applications/Emacs.app/Contents/MacOS/bin/emacsclient and | |
/Applications/Emacs.app/Contents/MacOS/Emacs | |
but, this is untested. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment