[ESS] polymode/ess-mode interaction
@p|nuv|t @end|ng |rom gm@||@com
Fri Apr 17 10:18:15 CEST 2015
(autoload 'R-mode "ess-r-d" "(Autoload)" t)
Autoloads should be coming soon to ESS, so this will be automatically
solved in the future.
>>> chris warth on Thu, 16 Apr 2015 17:16:07 -0700 wrote:
> I noticed that polymode behaves differently after visiting *.R files than
> it does before visiting a *.R file.
> The difference is caused by ess-mode defining the symbol 'r-mode' which
> polymode tries to use. If ESS hasn't been loaded yet, 'r-mode' is not
> defined and polymode falls back to using Fundamental mode instead (after a
> How can I ensure that r-mode from ESS is always defined and available
> before loading a *.Rmd file with polymode?
> I'm trying to do this in a hook to avoid loading ESS unless I really need
> I tried this without success,
> (add-hook 'poly-markdown+r-mode-hook
> (lambda ()
> (message "in poly-markdown+r-mode-hook")
> (require 'ess)))
> Also requiring the more specific 'ess-r-d in the poly-markdown+r-mode-hook
> does not seem to help.
> Ideas? Thanks in advance!
More information about the ESS-help