From 1adf764dc982d8345a755febab2466c6ff2f0f67 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 8 Apr 2015 22:29:54 -0400 Subject: Use font-lock-defaults Major modes should set font-lock-defaults: (info "(elisp)Font Lock Basics") --- snakemake-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'snakemake-mode.el') 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 -- cgit v1.2.3