Starting emacs with R in ESS
Martin Maechler
maechler at stat.math.ethz.ch
Fri Dec 22 16:29:42 CET 2000
>>>>> "Liaw" == Liaw, Andy <andy_liaw at merck.com> writes:
Liaw> Thanks a lot for the reply. However, this isn't quite what I
Liaw> want. This, in effect, starts S every time I run emacs.
Liaw> However, I don't always use S when I start emacs (I do edit other
Liaw> files in emacs). What I want is: every time I run R/S, run it
Liaw> under ESS. Is this possible?
Yes,
once you have (load ... "ess-site") or something similar in your .emacs,
you can simply say
emacs -f R
(on the command line and hence in the command of your "Icon").
which is equivalent to
emacs
M-x R
Liaw> Thanks again, and happy holidays!
You're welcome!
Martin Maechler <maechler at stat.math.ethz.ch> http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum LEO D10 Leonhardstr. 27
ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND
phone: x-41-1-632-3408 fax: ...-1228 <><
>> From: Rich Heiberger[SMTP:rmh at surfer.sbm.temple.edu]
>> Sent: Thursday, December 21, 2000 11:20 PM
>> To: 'ess-help at stat.math.ethz.ch'; Liaw, Andy
>> Subject: Re: Starting emacs with R in ESS
>>
>> I think your question is:
>> Can I make S start automatically every time I start emacs?
>> As usual, the answer is "yes".
>>
>> Add the following line to your .emacs immediately after the line
>> (load-library "ess-site") ;;; ESS for S-mode and SAS-mode
>>
>> (S) ;;; start S
>>
>> You may need to adjust the variables ess-ask-for-ess-directory and
>> You may need to adjust the variable ess-ask-for-ess-directory.
>> From ess-site.el
>>
>> ;;; (3.4) ess-ask-for-ess-directory
>> ;;; If t, will ask for the directory to use. If nil, assumes the
>> ;;; default (usually, the users home directory...).
>> (setq ess-ask-for-ess-directory t)
>>
>> I think you may want to use
>> (setq ess-ask-for-ess-directory nil)
>>
>> in which case this ess-ask-for-ess-directory line goes before (S)
>>
>> Rich
>>
>> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
>> -.-.-
>> ess-help mailing list -- To (un)subscribe, send
>> subscribe or unsubscribe
>> (in the "body", not the subject !) To: ess-help-request at stat.math.ethz.ch
>> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
>> _._._
>>
Liaw> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
Liaw> ess-help mailing list -- To (un)subscribe, send
Liaw> subscribe or unsubscribe
Liaw> (in the "body", not the subject !) To: ess-help-request at stat.math.ethz.ch
Liaw> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe or unsubscribe
(in the "body", not the subject !) To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the ESS-help
mailing list