On 13 juil, 14:32, "Pascal J. Bourguignon" <
p...@info...>
wrote:
> "Benoit G." <
benoit.gous...@gmai...> writes:
> > On 13 juil, 12:12, "Pascal J. Bourguignon" <
p...@info...>
> > wrote:
> >> "Benoit G." <
benoit.gous...@gmai...> writes:
> >> > Thank you again for this fast answer.
>
> >> > The problem is that calling M-x R-mode under emacs usually works.
> >> > But while calling R-mode with .emacs, it don't work anymore. And my R-scratch buffer is still in fundamental mode.
>
> >> > If I find any answer, I will post it.
>
> >> Perhaps M-x R-mode RET asks for parameters? Type C-h f R-mode RET and
> >> see what's its usage.
>
> > C-h f R-mode returns :
>
> > "
> > R-mode is an interactive compiled Lisp function in `ess-r-d.el'.
> > (R-mode &optional PROC-NAME)
> > Major mode for editing R source. See `ess-mode' for more help.
> > "
>
> > and ess-mode returns (first lines) :
>
> > "
> > R-mode is an interactive compiled Lisp function in `ess-r-d.el'.
> > (R-mode &optional PROC-NAME)
> > Major mode for editing R source. See `ess-mode' for more help.
> > "
>
> > I don't think it needed any required argument but I may be wrong...
>
> Indeed, (R-mode) should work.
>
> M-x toggle-debug-on-error RET
> and try again.
>
> --
> __Pascal Bourguignon__
http://www.informatimago.com/
> A bad day in () is better than a good day in {}.
The problem seems to be solved.
I added (require 'ess-site) in the .emacs file and the code you
published in the second message and the R-scratch buffer is
automatically created in R-mode while opening emacs. I guess this
solve the problem.
Thank you for helping !
opensubscriber is not affiliated with the authors of this message nor responsible for its content.