* R code block syntax highlighting (#21)
@ 2017-02-26 23:59 Joseph Elsherbini
2017-02-27 0:38 ` Kyle Meyer
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Joseph Elsherbini @ 2017-02-26 23:59 UTC (permalink / raw)
To: kyleam/snakemake-mode; +Cc: Subscribed
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]
Let me preface this by saying that I am very new to emacs and I'm checking it out mostly because of snakemake-mode. Thanks for making this!
I'm using spacemacs, and I installed mmm-mode and snakemake-mode.
In my user-config function I have the following code:
`(setq mmm-global-mode 'maybe)`
When I load up a Snakefile, the code is highlighted, but code inside an `R()` call isn't.
![screenshot from 2017-02-26 18-58-53](https://cloud.githubusercontent.com/assets/2695357/23345064/aeb95ba2-fc55-11e6-9680-ca519950e69f.png)
Any ideas what I might be doing wrong?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kyleam/snakemake-mode/issues/21
[-- Attachment #2: Type: text/html, Size: 2503 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: R code block syntax highlighting (#21)
2017-02-26 23:59 R code block syntax highlighting (#21) Joseph Elsherbini
@ 2017-02-27 0:38 ` Kyle Meyer
2017-03-28 12:47 ` Endre Bakken Stovner
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Kyle Meyer @ 2017-02-27 0:38 UTC (permalink / raw)
To: kyleam/snakemake-mode; +Cc: Kyle Meyer, Your activity
[-- Attachment #1: Type: text/plain, Size: 952 bytes --]
> Let me preface this by saying that I am very new to emacs and I'm
> checking it out mostly because of snakemake-mode. Thanks for making
> this!
You're welcome! Any feedback is greatly appreciated.
> I'm using spacemacs, and I installed mmm-mode and snakemake-mode.
>
> In my user-config function I have the following code:
>
> `(setq mmm-global-mode 'maybe)`
> When I load up a Snakefile, the code is highlighted, but code inside
> an `R()` call isn't.
>
> Any ideas what I might be doing wrong?
You need to call snakemake-mode-setup-mmm as well, I think. I must
admit that I've never used the mmm-mode functionality (which was
contributed by @endrebak), but
(snakemake-mode-setup-mmm)
(setq mmm-global-mode 'maybe)
seems to do the trick.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kyleam/snakemake-mode/issues/21#issuecomment-282602667
[-- Attachment #2: Type: text/html, Size: 3550 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: R code block syntax highlighting (#21)
2017-02-26 23:59 R code block syntax highlighting (#21) Joseph Elsherbini
2017-02-27 0:38 ` Kyle Meyer
@ 2017-03-28 12:47 ` Endre Bakken Stovner
2017-09-30 16:31 ` Kyle Meyer
2017-09-30 16:31 ` Kyle Meyer
3 siblings, 0 replies; 5+ messages in thread
From: Endre Bakken Stovner @ 2017-03-28 12:47 UTC (permalink / raw)
To: kyleam/snakemake-mode; +Cc: Kyle Meyer, Comment
[-- Attachment #1: Type: text/plain, Size: 393 bytes --]
Also, consider using the script directive to point to an R-script instead of the R-function. Separation of the DAG-logic from the code of each rule is good. Plus you get R-syntax highlighting with the ESS mode then :)
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/kyleam/snakemake-mode/issues/21#issuecomment-289758431
[-- Attachment #2: Type: text/html, Size: 2181 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: R code block syntax highlighting (#21)
2017-02-26 23:59 R code block syntax highlighting (#21) Joseph Elsherbini
2017-02-27 0:38 ` Kyle Meyer
2017-03-28 12:47 ` Endre Bakken Stovner
@ 2017-09-30 16:31 ` Kyle Meyer
2017-09-30 16:31 ` Kyle Meyer
3 siblings, 0 replies; 5+ messages in thread
From: Kyle Meyer @ 2017-09-30 16:31 UTC (permalink / raw)
To: kyleam/snakemake-mode; +Cc: Kyle Meyer, Your activity
[-- Attachment #1: Type: text/plain, Size: 201 bytes --]
Closed #21.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kyleam/snakemake-mode/issues/21#event-1272800312
[-- Attachment #2: Type: text/html, Size: 2018 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: R code block syntax highlighting (#21)
2017-02-26 23:59 R code block syntax highlighting (#21) Joseph Elsherbini
` (2 preceding siblings ...)
2017-09-30 16:31 ` Kyle Meyer
@ 2017-09-30 16:31 ` Kyle Meyer
3 siblings, 0 replies; 5+ messages in thread
From: Kyle Meyer @ 2017-09-30 16:31 UTC (permalink / raw)
To: kyleam/snakemake-mode; +Cc: Kyle Meyer, Your activity
[-- Attachment #1: Type: text/plain, Size: 321 bytes --]
@elsherbini Hopefully you were able to get things working using the
snippet above. If not, feel free to re-open this issue.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kyleam/snakemake-mode/issues/21#issuecomment-333319765
[-- Attachment #2: Type: text/html, Size: 2078 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-09-30 16:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-26 23:59 R code block syntax highlighting (#21) Joseph Elsherbini
2017-02-27 0:38 ` Kyle Meyer
2017-03-28 12:47 ` Endre Bakken Stovner
2017-09-30 16:31 ` Kyle Meyer
2017-09-30 16:31 ` Kyle Meyer
Code repositories for project(s) associated with this public inbox
https://git.kyleam.com/snakemake-mode/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).