X-Git-Url: https://git.donarmstrong.com/?p=bin.git;a=blobdiff_plain;f=emacs_r;h=56a0dfbd0749c61359ac88787767f66f1bfa2405;hp=d46625faf9a7c7281bdaeff1a37985adba913568;hb=0807353e7ba81c381cff78b6165f6c725bbcd2ec;hpb=4621d23526ccf936d1ad076ece0bc663510dfc52 diff --git a/emacs_r b/emacs_r index d46625f..56a0dfb 100755 --- a/emacs_r +++ b/emacs_r @@ -1,7 +1,9 @@ #!/bin/sh if [ "x$(basename $0)" = "xemacs_r" ]; then - exec emacs --eval '(setq server-name "R")' --eval '(server-start)' "$@"; + EMACS_SERVER_NAME=R + export EMACS_SERVER_NAME + exec emacs "$@"; elif [ "x$(basename $0)" = "xemacsclient_r" ]; then exec emacsclient -s R "$@"; else