>>>>> Dirk Eddelbuettel via ESS-help 
>>>>>     on Sat, 7 Feb 2026 10:46:24 -0600 writes:

    > 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))

Thank you, Dirk.

I wonder why / if the above is still needed, as you do mention
the polymode packages poly-*  and of course have and use
poly-R , no?  It already has such definitions, see

  https://github.com/polymode/poly-R/blob/master/poly-R.el#L736

and so I do wonder ...

Martin

    > 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

Reply via email to