summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Yasuyuki Oka2014-02-01 19:08:51 +0900
committerGravatar Yasuyuki Oka2014-02-01 19:08:51 +0900
commit88da7a78098c0a439942a91bfdc7e0543687725e (patch)
treec26698a3188beaba046b7cd05ac30d8c0c16e8bb
parent06fe7300712ee20dd7c205dd3c3d68ee5ec98c89 (diff)
downloadnginx-mode-88da7a78098c0a439942a91bfdc7e0543687725e.tar.gz
nginx-mode-88da7a78098c0a439942a91bfdc7e0543687725e.zip
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 8ce54ed..4f50495 100644
--- a/nginx-mode.el
+++ b/nginx-mode.el
@@ -184,11 +184,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)