From 4d4be15415a4f592e67ce6237e493f22adff8ba6 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 21 Feb 2020 00:42:38 -0500 Subject: 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. --- snakemake-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- cgit v1.2.3