emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/nginx-mode 06fe730 10/34: add some auto-mode-alist magic.


From: ELPA Syncer
Subject: [nongnu] elpa/nginx-mode 06fe730 10/34: add some auto-mode-alist magic. Fixes #6.
Date: Sun, 29 Aug 2021 11:24:13 -0400 (EDT)

branch: elpa/nginx-mode
commit 06fe7300712ee20dd7c205dd3c3d68ee5ec98c89
Author: Andrew J Cosgriff <andrew@cosgriff.name>
Commit: Andrew J Cosgriff <andrew@cosgriff.name>

    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 <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)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]