aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-02-21 00:42:38 -0500
committerKyle Meyer <kyle@kyleam.com>2020-02-21 22:19:09 -0500
commit4d4be15415a4f592e67ce6237e493f22adff8ba6 (patch)
treed482c041483e124eda696af364d96722b38a2820
parent3fcff2b92a4ac19d6f1dab3666dddcba46c4865b (diff)
downloadsnakemake-mode-4d4be15415a4f592e67ce6237e493f22adff8ba6.tar.gz
mode: Retain non-keyword parts of inherited font-lock-defaults
snakemake-font-lock-keywords is extended with python-font-lock-keywords, but the non-keyword bits that python.el defines for font-lock-defaults are discarded. Keep those too because python.el sets a value for font-lock-syntactic-face-function.
-rw-r--r--snakemake-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/snakemake-mode.el b/snakemake-mode.el
index e0299c2..2c15e9e 100644
--- a/snakemake-mode.el
+++ b/snakemake-mode.el
@@ -462,7 +462,8 @@ embedded R, you need to set mmm-global-mode to a non-nil value such as 'maybe.")
#'snakemake-block-or-defun-name)
(set (make-local-variable 'font-lock-defaults)
- `(,(append snakemake-font-lock-keywords python-font-lock-keywords))))
+ (cons (append snakemake-font-lock-keywords python-font-lock-keywords)
+ (cdr font-lock-defaults))))
;;;###autoload
(add-to-list 'auto-mode-alist '("Snakefile\\'" . snakemake-mode))