aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-05-03 00:53:29 -0400
committerKyle Meyer <kyle@kyleam.com>2016-05-03 00:53:29 -0400
commit2d3e788681ef1ba7e34f9b7f2b303b079b6ee05b (patch)
tree28ec2cc564f77ede19dd369519c2f922c2d06657
parent0b0419981087d3836354bc837a162864ef673456 (diff)
downloadsnakemake-mode-2d3e788681ef1ba7e34f9b7f2b303b079b6ee05b.tar.gz
mode: Add ".rules" as a file suffix
Closes #15.
-rw-r--r--NEWS2
-rw-r--r--snakemake-mode.el2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index e96fb89..3bef2db 100644
--- a/NEWS
+++ b/NEWS
@@ -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))