diff options
author | Andrew J. Cosgriff | 2014-03-22 14:23:55 +1100 |
---|---|---|
committer | Andrew J. Cosgriff | 2014-03-22 14:23:55 +1100 |
commit | 2cbac8af3c2286e4e0452e7257d1661f30bd6ccf (patch) | |
tree | 059841dca97212ba674e91a522570fbd8dd19b47 /nginx-mode.el | |
parent | b5c78991f282773543181187ed51813f26ccdba2 (diff) | |
parent | 88da7a78098c0a439942a91bfdc7e0543687725e (diff) | |
download | nginx-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
Diffstat (limited to 'nginx-mode.el')
-rw-r--r-- | nginx-mode.el | 9 |
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) |