Enable scratch buffer to execute R code in emacs-ess

Posted by sheed03 on Stack Overflow See other posts from Stack Overflow or by sheed03
Published on 2010-04-14T19:49:18Z Indexed on 2010/04/14 19:53 UTC
Read the original article Hit count: 381

Filed under:
|
|

Hello, I have switched to using emacs-ess for my R code development and it is working great. I would like to be able to write some small R code I am using for debugging my R script into the scratch buffer, and be able to execute the scratch buffer code in the R process buffer. I've found how I could change the scratch buffer's mode to text by putting the following in the .emacs file:

(setq initial-major-mode 'text-mode)

Is there a similar statement I can put in my .emacs file that would make the scratch buffer have the ess-mode? I tried the following which results in an error about wrong type argument:

(setq initial-major-mode 'ess-mode)

© Stack Overflow or respective owner

Related posts about r

    Related posts about emacs