diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ek | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,11 +1,11 @@ #!/usr/bin/env bash server_running () { - emacsclient -a "false" -e "(boundp 'server-process)" + emacsclient -a "false" -e "(boundp 'server-process)" "$@" } -if [ "t" == "$(server_running)" ]; then - emacsclient -e '(kill-emacs)' +if [ "t" == "$(server_running "$@")" ]; then + emacsclient -e '(kill-emacs)' "$@" echo "Emacs server is killed" else echo "Emacs server is not running" |