We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [polymode]

Polymode is an emacs package that offers generic support for multiple major modes inside a single emacs buffer.

Filter by
Sorted by
Tagged with
0
votes
0answers
28 views

Markdown and Latex highlighting (font lock) in R Markdown file

I am using polymode to edit rmarkdown files. Exporting to e.g. pdf is super simple and works very well. R code chunks are also properly highlighted. But: I do quite often use latex code inside (r)...
5
votes
1answer
762 views

How to set PDF export in polymode-mode to use xelatex engine?

Consider the below MWE of .Rmd file containing Arabic text which needs xelatex engine to be rendered by pandoc. As the documentation of the latter says putting this option would make it: --latex-...
1
vote
1answer
41 views

Polymode changes from ESS-mode to Markdown-mode whenever I press enter

When I am editing .Rmd file within a polymode chunk, the mode switches from ESS to Markdown mode whenever I press enter. However, it switches back to ess-mode whenver I save the file. I will try ...
1
vote
0answers
60 views

Can we get inline results with polymode for Rmd files?

As a new Emacs user, I've recently learned how to use polymode to handle R code in org-mode. I'm happy with it, since I get the same features than those implemented for example in Rstudio for Rmd ...
0
votes
0answers
35 views

How to specify a pdf viewer for ess mode

I have set the variable ess-pdf-viewer-pref to "evince" But when I export any Rnw file using M-n e, instead of displaying the pdf in evince it is displayed inside Emacs. How can I stop Emacs ...
0
votes
0answers
30 views

Compile multiple Rnw files

If we divide our Rnw file into multiple files, is it possible to create the whole document using knitr and LaTeX in Emacs by pressing M-n e on a child file? I guess the process above should be ...
0
votes
1answer
59 views

Text entered right-to-left in chunks using polymode

I use polymode when editing Rmarkdown files in Emacs 26.1 and have the following problem. I visit a new file, test.Rmd, and type the following at the top of the file (this creates a yaml chunk): --- ...
5
votes
1answer
478 views

What is the difference between the knitR and knitR-ESS for polymode?

I have recently setup polymode for use with Rnw and Rmd files. When it came to knit/weave a document I was given the choice of four defaults; knitR-ESS, Sweave, knitR and Sweave-ESS. I usually use ...
1
vote
0answers
118 views

Missing RMarkdown templates with poly-R

I use the ess, polymode, and poly-R packages together to work with RMarkdown files. I have also installed the R packages rmarkdown and tufte in my R library. While these R packages provide ".Rmd" ...
1
vote
1answer
336 views

ESS poly-R issue

I am trying to setup ESS with polymode and poly-markdown I have the following in my myinit.org file which becomes compiled into init.el ;; https://polymode.github.io/installation/ (use-package ...
2
votes
1answer
54 views

Syntactic fontification of diff hunks

I'm looking for a multiple-major-modes package that doesn't remove fontification of the host mode from its inner submodes? I tried MMM Mode and Polymode, but they remove the initial fontification and ...
2
votes
1answer
372 views

Symbol's value as variable is void: polymode-mode-map

I define a function ess-rmarkdown to compile RMarkdown documents with polymode. (use-package polymode :ensure t :config (use-package poly-R) (use-package poly-markdown) ;;; MARKDOWN (add-...
4
votes
1answer
370 views

ESS freezes on startup with ess-tracebug mode enabled

I am currently running R 3.3.1 in emacs 25.1.1, ESS 16.10, and polymode 20160805.448 installed via MELPA on Mac OS Sierra. Whenever I try to open an interactive R console using M-x R, it freezes ...
9
votes
1answer
968 views

Insert code chunk in R Markdown with yasnippet and polymode

I am trying to write a yasnippet to insert code chunks into an R Markdown file. I use polymode to have multiple major modes (markdown, ESS[S]) in a single file. This is my snippet: # -*- mode: ...
1
vote
0answers
28 views

Polymode: customise buffer names

Polymode creates a distinct buffer for each mode involved. Some use really inconvenient names, where the mode part of the name is easily longer than the actual document name itself, e.g. foo.Rmd[poly-...
1
vote
0answers
69 views

Good way to match symmetric delimiters

I am trying to match $$ resp $ pairs to switch into latex-mode via polymode in a markdown file. $$ is the delimiter for displayed math in this case and $ for inline math. I know that this is not a ...
1
vote
0answers
56 views

Does SyncTeX work with Emacs polymode?

Specifically, I want to sync an Rnoweb (Rnw) source with a PDF opened in either Skim or Evince using polymode. Note that I have no problem weaving or exporting Rnw files and viewing PDFs with Skim. ...
1
vote
0answers
26 views

polymode with fsharp-mode has trouble sending last line in code block to interactive

I just started setting up polymode I got ESS and r going nicely with markdown. (use-package markdown-mode) (use-package polymode) (require 'poly-R) (require 'poly-markdown) I was able to put r code ...
4
votes
1answer
625 views

Polymode with python and latex-mode

The polymode manual suggests that creating new polymodes should be very easy: Creating new polymodes typically takes a few lines of code. I wanted to set it up to make emacs to switch to python ...
3
votes
1answer
433 views

Polymode appears in minibuffer but does not weave into a file on Windows, why?

This is a follow-up post to Polymode installation on Windows machine. Accordingly I installed polymode using this code in the init.el file after ESS code: (require 'poly-R) (require 'poly-markdown)...
2
votes
1answer
476 views

Polymode installation on Windows machine

Polymode is very promising to handle the integration of R chunks using different modes. I went through the documentation and it works well when I am inside .Rmd file but not inside .Rnw. In the .Rnw I ...