Rmarkdown
Could we extend support to rmarkdown? (rmarkdown runs r and produces markdown code which produces latex which runs pdflatex to produce pdfs.) Ideally, it should use the same emacs commands as we use for editing latex (ctrl-c,a to compile and view etc). Gary
RMarkdown is supported using polymode: https://polymode.github.io/usage/. Export is bound to M-n e by default.
As usual I have mixed feelings about messing with keybindings :-)
Markdown mode uses C-c C-a to insert links (the C-"a" is mnemonic for link "anchor"). Markdown mode also has C-l to insert a link, so rebinding C-c -C-a to polymode-export might be OK. Are there any other keybindings you want for .Rmd files, or just C-c C-a to export?
I see. I didn't see polymode. but does polymode do something equivalent to C-c,a which we have for latex? if not, could we put that in as well as maybe Ctrl-c,c? Gary
Gary King - Albert J. Weatherhead III University Professor - Director, IQSS http://iq.harvard.edu/ - Harvard University GaryKing.org http://garyking.org/ - [email protected] - @KingGary https://twitter.com/kinggary - 617-500-7570 - Assistant [email protected]: 617-495-9271
On Sat, Sep 5, 2020 at 10:02 AM Ista Zahn [email protected] wrote:
RMarkdown is supported using polymode: https://polymode.github.io/usage/. Export is bound to M-n e by default.
As usual I have mixed feelings about messing with keybindings :-)
Markdown mode uses C-c C-a to insert links (the C-"a" is mnemonic for link "anchor"). Markdown mode also has C-l to insert a link, so rebinding C-c -C-a to polymode-export might be OK. Are there any other keybindings you want for .Rmd files, or just C-c C-a to export?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/IQSS/IQSS.emacs/issues/19#issuecomment-687615658, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEMN7QD4R7LDN6TTOPHTELSEJAIFANCNFSM4QZ3ECRA .
I'm pretty sure M-n e (polymode-export) does what you want. You can also use "Export" from the "Polymode" menu.
I looked at the keybinding situation and I'm very reluctant to start re-binding things. C-c C-a already serves a useful purpose in markown-mode, as does C-c C-c. The emacs universe is too big and unruly for consistency across modes unfortunately.
ok, that makes sense. thanks Ista Gary
Gary King - Albert J. Weatherhead III University Professor - Director, IQSS http://iq.harvard.edu/ - Harvard University GaryKing.org http://garyking.org/ - [email protected] - @KingGary https://twitter.com/kinggary - 617-500-7570 - Assistant [email protected]: 617-495-9271
On Mon, Sep 7, 2020 at 8:41 PM Ista Zahn [email protected] wrote:
I'm pretty sure M-n e (polymode-export) does what you want. You can also use "Export" from the "Polymode" menu.
I looked at the keybinding situation and I'm very reluctant to start re-binding things. C-c C-a already serves a useful purpose in markown-mode, as does C-c C-c. The emacs universe is too big and unruly for consistency across modes unfortunately.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/IQSS/IQSS.emacs/issues/19#issuecomment-688556372, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEMN7WSEZCQ7L7R34RQY4TSEV4S7ANCNFSM4QZ3ECRA .