#!/bin/sh

runem=$(pgrep -c emacs)

if [ $runem -gt 0 ]; then
    echo "emacs is running!"            
else
    echo "emacs isn't running! Starting it..."            
    emacs --daemon &
    echo "emacs started."            
fi
