diff options
author | Guangxiong Lin <[email protected]> | 2022-11-07 09:57:15 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-11-07 09:57:29 +0800 |
commit | dadc0f8b563c32ff57df7a4ec5bb16387368be9f (patch) | |
tree | c84918b3c05e1c7918ac0da3ae6cfc486d14dade /bin | |
parent | 85e6312355cfb8a0f1774a05b1e671bc89a97235 (diff) | |
download | dotfiles-dadc0f8b563c32ff57df7a4ec5bb16387368be9f.tar.gz dotfiles-dadc0f8b563c32ff57df7a4ec5bb16387368be9f.tar.bz2 dotfiles-dadc0f8b563c32ff57df7a4ec5bb16387368be9f.zip |
Update emacs config
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" |