-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add RMarkdown support to ESS layer. #5126
Conversation
Why just RMarkdown? I'm not against merging this as a temporary measure, but I do think it
|
I was just playing around with RMarkdown and saw that it was not supported. Since it seems more clumsy than using org mode directly I have no real need for it. So no strong opinion on this from my side. |
polymode doesn't work very well with evil-mode: polymode/polymode#41 |
@roryk I can't reproduce the problems described in polymode/polymode#41. Can you? It is true that insert/normal state is not synchronized across indirect buffers, but I don't really see that as a problem, and certainly not something that should block integration in spacemacs. |
Yeah, I totally can, I enabled polymode again to edit a Rmarkdown file to check to see if it was fixed and disabled it a couple of days ago because it wasn't. It seems like it works fine at first but has problems. I'm not sure what is exactly how to reproduce the behavior, but you can get into a state where undo gets destroyed. It might be you have to get to a more complicated undo history like undoing in the two different blocks before it happens. |
I can't seem to reproduce it though, I'll keep it turned on for a while and see if I can figure out when and why it is happening. The insert/normal state not being synced is pretty brutal. I can't even make named blocks:
traps me in a look up the function mode in spacemacs. |
On Thu, Feb 25, 2016 at 1:40 PM, Rory Kirchner notifications@github.com
|
Yup, you are right. |
The issue has been fixed on the polymode side, at least to the extent I can test it as a non evil user. |
Org-mode seems to be more stable than knitr; it supports many other languages; and managing document structure with it is very pleasing. So I tried to use org-mode to write org+R documents as a replacement for rmarkdown. However, here are the reasons I switched back to knitr (rmarkdown) for now:
So yes, I still want to have support for Rmarkdown/knitr in
Switching to emacs key (by looping with |
For syntax highlighting you must have the |
@cpaulik Clarification: Syntax highlight while editing is working fine. I was taking about syntax highlighting for code chunks in rendered PDF or HTML documents. |
@biocyberman Strange. HTML syntax highlighting should work fine out of the box AFAIK. For latex you have to use the Something like
in your config should do if you use latexmk. Otherwise change the |
I can reproduce the
@biocyberman can you give more detailed reproduction steps for this one? |
@cpaulik @biocyberman Any updates on this PR? |
I tried opening a But it opens in
I found this page: Where the comment says:
When I add the last three packages ( Now the same All three packages might not be needed, because the same thing happens when only Syntax highlighting issueThe author of the reddit thread seems to have had some syntax highlighting issues:
And there's a small syntax highlighting issue for me as well. The highlighting doesn't appear until the cursor is moved. I even tried waiting 30 seconds but nothing happened until the cursor was moved, so it doesn't seem to be delayed. When the highlighting does appear then it seems to be fine. Except for one place where it seems like there's an attempt at adding an indented code block within a code block:
(everything in the code block is indented 4 spaces to make the backticks visible) System Info 💻
(autohotkey colors emacs-lisp ess git helm markdown multiple-cursors org spell-checking syntax-checking treemacs version-control)
|
Issues with polymode are better reported on polymode tracker.
Polymode has been developed actively for the past months, so most of the issues people had in the past are either resolved or are no longer relevant. Setups and configurations in older posts/blogs might no longer be correct either.
Only poly-R is needed. All others are dependencies of poly-R. Assignment into auto-mode-alist is not needed either, it's done automatically.
This could come from the emacs re-display engine. In emacs 26 I have started seeing delays in re-display on various occasions in non-polymode buffer. I have never seen them in polymode buffers though. User input trigers the re-display so it's not a such a big deal. I haven't seen such issues with emacs 27 though. So maybe it has been solved already.
Fenced code blocks cannot be nested. It doesn't make much sense in general. Indented blocks do work. |
This seems to just be a setup issue in Spacemacs. When I add (defun ess/init-poly-R ()) Then it works without having to manually add the package to the
Confirmed, it still works when these are commented out:
(defun ess/init-polymode ()
(use-package poly-R
:defer t)
(use-package poly-markdown
:defer t)
)
Confirmed, it seems to be an Emacs 26 issue, syntax highlighting are present instantly when the
Then it's just an anomaly by the author of the sample file: |
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this PR is still need merging! |
No description provided.