[ESS] configuring the ess-toolbar under emacs

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Wed Apr 6 14:00:49 CEST 2005


Hi,
 > 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)
(setq ess-toolbar-items
  '( (R   "startr"  "Start R process")
     (ess-eval-line-and-step   "rline" "Eval line & step")))

(ess-make-toolbar)

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!

Best, stephen




More information about the ESS-help mailing list