X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=emacs_r;h=56a0dfbd0749c61359ac88787767f66f1bfa2405;hb=c415a1ba1aeca58b537ccd13176ce6968f834091;hp=ba7ccbc7a681ad9e5cfa432b7f285279a37cb8c8;hpb=189ae560786ce1753a0bf8549a182de20a8a062b;p=bin.git diff --git a/emacs_r b/emacs_r index ba7ccbc..56a0dfb 100755 --- a/emacs_r +++ b/emacs_r @@ -1,9 +1,11 @@ #!/bin/sh if [ "x$(basename $0)" = "xemacs_r" ]; then - emacs -e '(setq server-name "R")' "$@"; + EMACS_SERVER_NAME=R + export EMACS_SERVER_NAME + exec emacs "$@"; elif [ "x$(basename $0)" = "xemacsclient_r" ]; then - emacsclient -s R "$@"; + exec emacsclient -s R "$@"; else echo "No clue what to do '$0'"; fi;