aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-02-26 21:46:12 -0500
committerKyle Meyer <kyle@kyleam.com>2017-02-26 21:52:22 -0500
commit6f2c034f1ec557c9e7e624cfd53e8ebb997376ab (patch)
treee8cb555725f22facdc67b78786b0ba95be508c57
parent1de1046fc728b74193aa34abc9032b75b5e8b1ec (diff)
downloadsnakemake-mode-6f2c034f1ec557c9e7e624cfd53e8ebb997376ab.tar.gz
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 `'.
-rw-r--r--snakemake-mode.el8
1 files 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"))