blob: a4a9efe901308a5656b378f483323f4a0485fb34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env bash
server_running () {
emacsclient -a "false" -e "(boundp 'server-process)" "$@"
}
if [ "t" == "$(server_running "$@")" ]; then
emacsclient -e '(kill-emacs)' "$@"
echo "Emacs server is killed"
else
echo "Emacs server is not running"
fi
|