#!/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