From 6f2c034f1ec557c9e7e624cfd53e8ebb997376ab Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 26 Feb 2017 21:46:12 -0500 Subject: snakemake-mode-setup-mmm: Protect doc-string's single quotes As of Emacs 25, single quotes in doc-strings are rendered according to text-quoting-style, which by default results in single quotes being displayed as curved quotes. Instead of protecting single quotes with "\\=", switch some to double quotes (which still need to be escaped, but in a less jarring way), and avoid quoting symbols, which are better represented within `'. --- snakemake-mode.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snakemake-mode.el b/snakemake-mode.el index e8513f1..9e90adf 100644 --- a/snakemake-mode.el +++ b/snakemake-mode.el @@ -371,12 +371,12 @@ label." (defun snakemake-mode-setup-mmm () "Set up MMM mode to highlight embedded R code. -You must have the R-strings either within a R(''' ''') function -call or a code block delimited with '''#r and '''. (Triple -double-quotes also accepted.) +You must have the R-strings either within a R(\"\"\" \"\"\") function +call or a code block delimited with \"\"\"#r and \"\"\". (Triple +single-quotes also accepted.) For automatic highlighting of embedded regions, you need to set -`mmm-global-mode` to 'maybe." +`mmm-global-mode` to `maybe'." (unless (require 'mmm-mode nil t) (user-error "You need to install mmm-mode")) -- cgit v1.2.3