aboutsummaryrefslogtreecommitdiff
path: root/bin/ek
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ek')
-rwxr-xr-xbin/ek6
1 files changed, 3 insertions, 3 deletions
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"