branch: elpa/nginx-mode commit 2cbac8af3c2286e4e0452e7257d1661f30bd6ccf Merge: b5c7899 88da7a7 Author: Andrew J. Cosgriff <and...@cosgriff.name> Commit: Andrew J. Cosgriff <and...@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)