summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Andrew J. Cosgriff2014-03-22 14:23:55 +1100
committerGravatar Andrew J. Cosgriff2014-03-22 14:23:55 +1100
commit2cbac8af3c2286e4e0452e7257d1661f30bd6ccf (patch)
tree059841dca97212ba674e91a522570fbd8dd19b47
parentb5c78991f282773543181187ed51813f26ccdba2 (diff)
parent88da7a78098c0a439942a91bfdc7e0543687725e (diff)
downloadnginx-mode-2cbac8af3c2286e4e0452e7257d1661f30bd6ccf.tar.gz
nginx-mode-2cbac8af3c2286e4e0452e7257d1661f30bd6ccf.zip
Merge pull request #8 from yasuyk/auto-mode-alist
Set auto-mode-alist at top-level and Add autoload cookie
-rw-r--r--nginx-mode.el9
1 files 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)