dotfiles/scripts/emacsd
2022-04-05 08:22:08 -05:00

12 lines
229 B
Bash
Executable file

#!/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