diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-04-08 22:29:54 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-04-08 22:29:54 -0400 |
commit | 1adf764dc982d8345a755febab2466c6ff2f0f67 (patch) | |
tree | 5311fc743fec23d51eb6917c4941ee01b43b4505 | |
parent | 01d4fb81c6a5991f88bbe135ac8ef2e11e0f983c (diff) | |
download | snakemake-mode-1adf764dc982d8345a755febab2466c6ff2f0f67.tar.gz |
Use font-lock-defaults
Major modes should set font-lock-defaults:
(info "(elisp)Font Lock Basics")
-rw-r--r-- | snakemake-mode.el | 3 |
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 |