scripts: Remove '--exit' parameter and update doc
It is just as easy and simpler to call `kill-emacs` from Emacs.master
parent
9ad11fb099
commit
0cf02b5c38
13
.scripts/em
13
.scripts/em
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue