Permalink
Browse files

add some auto-mode-alist magic. Fixes #6.

  • Loading branch information...
1 parent 72e1ea5 commit 06fe7300712ee20dd7c205dd3c3d68ee5ec98c89 @ajc committed Dec 23, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 nginx-mode.el
View
@@ -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)

0 comments on commit 06fe730

Please sign in to comment.