From 06fe7300712ee20dd7c205dd3c3d68ee5ec98c89 Mon Sep 17 00:00:00 2001 From: Andrew J Cosgriff Date: Mon, 23 Dec 2013 19:44:50 +1100 Subject: add some auto-mode-alist magic. Fixes #6. --- nginx-mode.el | 8 ++++++-- 1 file 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 ;; Maintainer: Andrew J Cosgriff ;; 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) -- cgit v1.2.3-54-g00ecf