aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--snakemake-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/snakemake-mode.el b/snakemake-mode.el
index 51c5c30..73085b4 100644
--- a/snakemake-mode.el
+++ b/snakemake-mode.el
@@ -346,7 +346,8 @@ Type \\[snakemake-compile-rule] to run Snakemake with the rule of
the block at point as the target.
\n\\{snakemake-mode-map}"
(set (make-local-variable 'indent-line-function) 'snakemake-indent-line)
- (font-lock-add-keywords nil snakemake-font-lock-keywords)
+ (set (make-local-variable 'font-lock-defaults)
+ `(,(append snakemake-font-lock-keywords python-font-lock-keywords)))
(set (make-local-variable 'compile-command) (snakemake-compile-command)))
;;;###autoload