From dadc0f8b563c32ff57df7a4ec5bb16387368be9f Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Mon, 7 Nov 2022 09:57:15 +0800 Subject: Update emacs config --- bin/ek | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/ek') diff --git a/bin/ek b/bin/ek index 4420327..a4a9efe 100755 --- a/bin/ek +++ b/bin/ek @@ -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" -- cgit v1.2.3