-
-
Save krbullock/1389506 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 | |
emacsclient "$@" | |
if [[ $? -eq 1 ]]; then | |
/Applications/Emacs.app/Contents/MacOS/Emacs & | |
echo "Waiting for server socket to appear..." | |
until [[ -S "$TMPDIR/emacs$UID/server" ]]; do | |
sleep 0.5 | |
done | |
emacsclient "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment