discussion and development of Emacs Snakemake mode
 help / color / mirror / Atom feed
* 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
                   ` (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: 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
  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: 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

discussion and development of Emacs Snakemake mode

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.kyleam.com/snakemake-mode/0 snakemake-mode/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 snakemake-mode snakemake-mode/ https://inbox.kyleam.com/snakemake-mode \
		snakemake-mode@inbox.kyleam.com
	public-inbox-index snakemake-mode

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.snakemake-mode


code repositories for the project(s) associated with this inbox:

	https://git.kyleam.com/snakemake-mode/

AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git