summaryrefslogtreecommitdiff
path: root/snakemake-mode.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-04-08 22:29:54 -0400
committerKyle Meyer <kyle@kyleam.com>2015-04-08 22:29:54 -0400
commit1adf764dc982d8345a755febab2466c6ff2f0f67 (patch)
tree5311fc743fec23d51eb6917c4941ee01b43b4505 /snakemake-mode.el
parent01d4fb81c6a5991f88bbe135ac8ef2e11e0f983c (diff)
downloadsnakemake-mode-1adf764dc982d8345a755febab2466c6ff2f0f67.tar.gz
Use font-lock-defaults
Major modes should set font-lock-defaults: (info "(elisp)Font Lock Basics")
Diffstat (limited to 'snakemake-mode.el')
-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