[ESS] configuring the ess-toolbar under emacs
wsetzer at mindspring.com
Wed Apr 6 15:33:12 CEST 2005
Thanks, that works. Note that it worked even without setting ess-toolbar to nil first. I can see you want the compatibility library to make this a clean change, but you can add ess-make-toolbar to the ESS-mode hooks and it works just fine on my system.
From: Stephen Eglen <S.J.Eglen at damtp.cam.ac.uk>
Sent: Apr 6, 2005 8:00 AM
To: Woodrow Setzer <wsetzer at mindspring.com>
Cc: Stephen Eglen <S.J.Eglen at damtp.cam.ac.uk>, ess-help at stat.math.ethz.ch
Subject: Re: [ESS] configuring the ess-toolbar under emacs
> No, I did not get it. However, I have (require 'ess-site) in
> site-start.el (or something like that; I don't have access to my
> linux box right now). The point is, ess is started before it
> reads the configuration information in .emacs, so the toolbar is
> already set up when any changes recorded in ~/.emacs are read.
Yes, and the fact that the toolbar is currently made just once is
wrong - hopefully this will be cleanly fixed with the compat. library,
whenever it surfaces... In the meantime, could you try adding the
following at the end of your .emacs:
(setq ess-toolbar nil)
'( (R "startr" "Start R process")
(ess-eval-line-and-step "rline" "Eval line & step")))
For me, this allows the toolbar (on Emacs 22.0 CVS) to have just two
entries. Maybe that gets you a simpler workaround.
> 2) I wanted to point out a situation in which the "standard"
> 2) approach to reconfiguring emacs did not seem to work. It looks
> 2) like there needs to be provision for "hooks" in the block of
> 2) configuration code that gets put in .emacs that would include
> 2) functions that were executed during that late part of
> 2) initialization.
or in this case, just better toolbar code!
More information about the ESS-help