Skip to content

Instantly share code, notes, and snippets.

@tsu-nera
Created May 1, 2013 06:47
Show Gist options
  • Select an option

  • Save tsu-nera/5494052 to your computer and use it in GitHub Desktop.

Select an option

Save tsu-nera/5494052 to your computer and use it in GitHub Desktop.
Emacs デーモン起動シェル -r オプションで再起動
#!/bin/bash
# option -r is Reboot
if [ "$1" = "-r" ]; then
echo "Reboot Emacs Daemon"
emacsclient -e '(kill-emacs)'
fi
# start emacs
emacs --daemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment