diff options
author | Kyle Meyer <kyle@kyleam.com> | 2016-05-03 00:53:29 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2016-05-03 00:53:29 -0400 |
commit | 2d3e788681ef1ba7e34f9b7f2b303b079b6ee05b (patch) | |
tree | 28ec2cc564f77ede19dd369519c2f922c2d06657 | |
parent | 0b0419981087d3836354bc837a162864ef673456 (diff) | |
download | snakemake-mode-2d3e788681ef1ba7e34f9b7f2b303b079b6ee05b.tar.gz |
mode: Add ".rules" as a file suffix
Closes #15.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | snakemake-mode.el | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -14,6 +14,8 @@ NEWS -- history of user-visible changes -*- mode: org; -*- highlight string-embedded R code. (Contributed by Endre Bakken Stovner.) +- ".rules" has been added as a suffix for Snakemake files. + * v0.4.0 ** New features diff --git a/snakemake-mode.el b/snakemake-mode.el index cb8f672..93e42e6 100644 --- a/snakemake-mode.el +++ b/snakemake-mode.el @@ -402,7 +402,7 @@ embedded R, you need to set mmm-global-mode to a non-nil value such as 'maybe.") ;;;###autoload (add-to-list 'auto-mode-alist '("Snakefile\\'" . snakemake-mode)) ;;;###autoload -(add-to-list 'auto-mode-alist '("\\.smrules\\'" . snakemake-mode)) +(add-to-list 'auto-mode-alist '("\\.\\(?:sm\\)?rules\\'" . snakemake-mode)) ;;;###autoload (add-to-list 'auto-mode-alist '("\\.snakefile\\'" . snakemake-mode)) |