[ESS] Show toolbar only when using R

Rodney Sparapani rsparapa at mcw.edu
Fri Mar 26 16:41:14 CET 2010


On 03/25/10 04:53 AM, Stephen Eglen wrote:
> I thought the following would work:
>
> ;; (tool-bar-mode 0)                 ;no tool bar thanks.
> ;; (add-hook 'ess-mode-hook 'my-ess-toolbar-hook)
>
> ;; (defun my-ess-toolbar-hook ()
> ;;   (tool-bar-mode 1))
>
> but it didn't -- tool-bar-mode turns it on globally.  So, there may be a
> solution, but its not obvious, sorry.
>
> Stephen

Hi Stephen:

Just a guess.  But, I bet this could be done with a new minor mode.

Rodney



More information about the ESS-help mailing list