Skip to content

Instantly share code, notes, and snippets.

@apg
Created January 11, 2012 14:41
Show Gist options
  • Save apg/1594955 to your computer and use it in GitHub Desktop.
Save apg/1594955 to your computer and use it in GitHub Desktop.
#!/bin/bash
ps ax | grep "emacs --daemon" | grep -v "grep"
if [ "$?" -eq "1" ]
then
/usr/bin/emacs --daemon
fi
/usr/bin/emacsclient -c $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment