Skip to content

Instantly share code, notes, and snippets.

View pfhawkins's full-sized avatar

P.F. Hawkins pfhawkins

View GitHub Profile
em() {
daemonproc=$(ps faux | egrep "emacs --daemon" | egrep -vc "egrep")
if [ $daemonproc = 1 ]; then
emacsclient -t $1
else;
emacs --daemon
emacsclient -t $1
fi
}