summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Andrew J Cosgriff2013-12-23 19:44:50 +1100
committerGravatar Andrew J Cosgriff2013-12-23 19:44:50 +1100
commit06fe7300712ee20dd7c205dd3c3d68ee5ec98c89 (patch)
treeeb970151d9da0d03d53b888f6893e3fd34038d22
parent72e1ea5ad51103c9fe3cae731f3205c21ac90bee (diff)
downloadnginx-mode-06fe7300712ee20dd7c205dd3c3d68ee5ec98c89.tar.gz
nginx-mode-06fe7300712ee20dd7c205dd3c3d68ee5ec98c89.zip
add some auto-mode-alist magic. Fixes #6.
-rw-r--r--nginx-mode.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/nginx-mode.el b/nginx-mode.el
index 37212eb..8ce54ed 100644
--- a/nginx-mode.el
+++ b/nginx-mode.el
@@ -5,7 +5,7 @@
;; Author: Andrew J Cosgriff <andrew@cosgriff.name>
;; Maintainer: Andrew J Cosgriff <andrew@cosgriff.name>
;; Created: 15 Oct 2010
-;; Version: 1.1.1
+;; Version: 1.1.2
;; Keywords: nginx
;; available from http://github.com/ajc/nginx-mode
@@ -184,7 +184,11 @@ The variable nginx-indent-level controls the amount of indentation.
(set (make-local-variable 'font-lock-defaults)
'(nginx-font-lock-keywords nil))
- (run-hooks 'nginx-mode-hook))
+ (run-hooks 'nginx-mode-hook)
+
+ (add-to-list 'auto-mode-alist
+ '("nginx\.conf$" . nginx-mode)
+ '("/etc/nginx/.*" . nginx-mode)))
(provide 'nginx-mode)