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

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

[nongnu] elpa/nginx-mode 2cbac8a 15/34: Merge pull request #8 from yasuy


From: ELPA Syncer
Subject: [nongnu] elpa/nginx-mode 2cbac8a 15/34: Merge pull request #8 from yasuyk/auto-mode-alist
Date: Sun, 29 Aug 2021 11:24:14 -0400 (EDT)

branch: elpa/nginx-mode
commit 2cbac8af3c2286e4e0452e7257d1661f30bd6ccf
Merge: b5c7899 88da7a7
Author: Andrew J. Cosgriff <andrew@cosgriff.name>
Commit: Andrew J. Cosgriff <andrew@cosgriff.name>

    Merge pull request #8 from yasuyk/auto-mode-alist
    
    Set auto-mode-alist at top-level and Add autoload cookie
---
 nginx-mode.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/nginx-mode.el b/nginx-mode.el
index 70382d4..83d8619 100644
--- a/nginx-mode.el
+++ b/nginx-mode.el
@@ -182,11 +182,12 @@ 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)))
+;;;###autoload
+(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]