Skip to content

Instantly share code, notes, and snippets.

@beatak
Created January 28, 2013 02:34
Show Gist options
  • Save beatak/4652500 to your computer and use it in GitHub Desktop.
Save beatak/4652500 to your computer and use it in GitHub Desktop.
started to use emacsclient…
#!/bin/sh
echo 'checking process'
PC=`pgrep Emacs`
if [ -z $PC ]
then
echo 'opening daemon'
Emacs --daemon
emacsclient -c &
else
emacsclient -c &
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment