diff options
Diffstat (limited to 'bin/ek')
-rwxr-xr-x | bin/ek | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,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 |