[ESS] polymode/ess-mode interaction

chris warth c@w@rth @end|ng |rom gm@||@com
Fri Apr 17 18:41:14 CEST 2015


Thank you, Vitalie, I would not have figured that out.  That recipe didn't
quite work, but after trying a couple of variations I hit upon this one
that does:

(autoload 'r-mode "ess-site" "(Autoload)" t)


Note the lowercase 'r-mode' as well as the ess-site; both are necessary for
success.  Trying to autoload just "ess-r-d" caused errors like,

polymode error: Symbol's function definition is void: ess-message


Autoloading "ess" also failed in different ways depending on whether I was
trying to define "R-mode" or "r-mode".  However, autoloading "ess-site"
seems to (require) all the right bits and pieces to get it all working.

To clarify for any not following along, this line allows you to open a .Rmd
(R-markdown) file as your first file in Emacs.  Without this line, polymode
will use only two major modes; Markdown and Fundamental.  With this
autoload line, polymode will open your .Rmd files in three major modes;
Markdown, Fundamental, and r-mode (ess).

Thanks again for your help.

- Chris


On Fri, Apr 17, 2015 at 1:18 AM, Vitalie Spinu <spinuvit using gmail.com> wrote:

>
> Hi Chris,
>
> Something along
>
>   (autoload 'R-mode "ess-r-d" "(Autoload)" t)
>
> should help.
>
> Autoloads should be coming soon to ESS, so this will be automatically
> solved in the future.
>
>   Vitalie
>
>

	[[alternative HTML version deleted]]




More information about the ESS-help mailing list