On 7 February 2026 at 17:13, LaurentEss via ESS-help wrote:
| Ok, thank you for this information.
|
| I must have a problem with my configuration but I feel that I will have
| trouble finding where my problem comes from.
Three+ decades emacs user here who also still struggles comprehending a
'built over 30+ years' "superfund site" of his own ~/.emacs ... but I added
these lines a while back, and it seems to do the trick (thanks to the code in
ess and poly* modes):
;;; MARKDOWN
(add-to-list 'auto-mode-alist '("\\.md" . poly-markdown-mode))
;;; R modes
(add-to-list 'auto-mode-alist '("\\.Snw" . poly-noweb+r-mode))
(add-to-list 'auto-mode-alist '("\\.Rnw" . poly-noweb+r-mode))
(add-to-list 'auto-mode-alist '("\\.Rmd" . poly-markdown+r-mode))
I edit mixed use files all the time as Rmd with code snippets, even if I
often just rely on the mixed-mode highlighting. But works in output and
during editing. Otherwise mostly defaults for both ess and poly-* (modulo
some small overrides I had for years).
Dirk
--
dirk.eddelbuettel.com | @eddelbuettel | [email protected]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help