Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rmarkdown #19

Open
thegaryking opened this issue Sep 5, 2020 · 4 comments
Open

Rmarkdown #19

thegaryking opened this issue Sep 5, 2020 · 4 comments

Comments

@thegaryking
Copy link

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

@izahn
Copy link
Collaborator

izahn commented Sep 5, 2020

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?

@thegaryking
Copy link
Author

thegaryking commented Sep 7, 2020 via email

@izahn
Copy link
Collaborator

izahn commented Sep 8, 2020

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.

@thegaryking
Copy link
Author

thegaryking commented Sep 8, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants