From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 26 Feb 2017 15:59:56 -0800 From: Joseph Elsherbini Reply-To: kyleam/snakemake-mode Message-ID: Subject: R code block syntax highlighting (#21) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_58b36bfcdb292_16733f83da387c301096bb"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Subscribed ----==_mimepart_58b36bfcdb292_16733f83da387c301096bb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 ----==_mimepart_58b36bfcdb292_16733f83da387c301096bb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

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

Any ideas what I might be doing wrong?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

----==_mimepart_58b36bfcdb292_16733f83da387c301096bb-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 26 Feb 2017 16:38:20 -0800 From: Kyle Meyer Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: R code block syntax highlighting (#21) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_58b374fc61267_218b3fe10dca113c7285c"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer , Your activity ----==_mimepart_58b374fc61267_218b3fe10dca113c7285c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit > 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 ----==_mimepart_58b374fc61267_218b3fe10dca113c7285c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > 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<= br> > 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.

&m= dash;
You are receiving this because you are subscribed to this thre= ad.
Reply to this email directly, view it on GitHub= , or mute the thread.

= ----==_mimepart_58b374fc61267_218b3fe10dca113c7285c-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 28 Mar 2017 05:47:36 -0700 From: Endre Bakken Stovner Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: R code block syntax highlighting (#21) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_58da5b68b71c8_2f533fef00ecbc2c17193f"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer , Comment ----==_mimepart_58da5b68b71c8_2f533fef00ecbc2c17193f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 ----==_mimepart_58da5b68b71c8_2f533fef00ecbc2c17193f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Also, consider using the script directive to point to an R-script instea= d 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 :)

&mda= sh;
You are receiving this because you commented.
Reply to this e= mail directly, view it on GitHub, or mute the thread.3D""

= ----==_mimepart_58da5b68b71c8_2f533fef00ecbc2c17193f-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 30 Sep 2017 16:31:46 +0000 (UTC) From: Kyle Meyer Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: R code block syntax highlighting (#21) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_59cfc6f26dc4d_22653fb4d004cf30824da"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer , Your activity ----==_mimepart_59cfc6f26dc4d_22653fb4d004cf30824da Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 ----==_mimepart_59cfc6f26dc4d_22653fb4d004cf30824da Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Closed #21.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

----==_mimepart_59cfc6f26dc4d_22653fb4d004cf30824da-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 30 Sep 2017 16:31:46 +0000 (UTC) From: Kyle Meyer Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: R code block syntax highlighting (#21) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_59cfc6f25e6a2_b10a3f94d0b7af30173c"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer , Your activity ----==_mimepart_59cfc6f25e6a2_b10a3f94d0b7af30173c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit @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 ----==_mimepart_59cfc6f25e6a2_b10a3f94d0b7af30173c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

@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, view it on GitHub, or mute the thread.

----==_mimepart_59cfc6f25e6a2_b10a3f94d0b7af30173c--