Skip to content

Commit 2cbac8a

Browse files
committed
Merge pull request #8 from yasuyk/auto-mode-alist
Set auto-mode-alist at top-level and Add autoload cookie
2 parents b5c7899 + 88da7a7 commit 2cbac8a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

nginx-mode.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,12 @@ The variable nginx-indent-level controls the amount of indentation.
182182

183183
(set (make-local-variable 'font-lock-defaults)
184184
'(nginx-font-lock-keywords nil))
185-
(run-hooks 'nginx-mode-hook)
185+
(run-hooks 'nginx-mode-hook))
186186

187-
(add-to-list 'auto-mode-alist
188-
'("nginx\.conf$" . nginx-mode)
189-
'("/etc/nginx/.*" . nginx-mode)))
187+
;;;###autoload
188+
(add-to-list 'auto-mode-alist
189+
'("nginx\.conf$" . nginx-mode)
190+
'("/etc/nginx/.*" . nginx-mode))
190191

191192
(provide 'nginx-mode)
192193

0 commit comments

Comments
 (0)