scripts: Remove '--exit' parameter and update doc

It is just as easy and simpler to call `kill-emacs` from Emacs.
master
Pierre Neidhardt 2017-06-15 18:43:02 +01:00
parent 9ad11fb099
commit 0cf02b5c38
1 changed files with 2 additions and 11 deletions

View File

@ -4,8 +4,8 @@ if [ "$1" = "-h" ]; then
cat <<EOF>&2
Usage: ${0##*/} [OPTIONS] [FILES]
Start emacsclient in terminal or in X window if possible. If no server is
running, it is started with the '--no-site-file' parameter.
Start emacsclient in terminal or in X window if possible. Server is started on
demand.
The calling script can have different names:
@ -16,19 +16,10 @@ All emacsclient(1) options are supported:
$(emacsclient --help)
Extra options:
--kill: Shutdown Emacs daemon.
EOF
exit
fi
if [ "$1" = "--kill" ]; then
emacsclient -e '(kill-emacs)'
exit
fi
if [ "${0##*/}" = "emc" ]; then
## Force terminal mode
param="-t"