summaryrefslogtreecommitdiffstatshomepage
path: root/nginx-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'nginx-mode.el')
-rw-r--r--nginx-mode.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/nginx-mode.el b/nginx-mode.el
index 8195a00..0f7cf8c 100644
--- a/nginx-mode.el
+++ b/nginx-mode.el
@@ -185,9 +185,11 @@ The variable nginx-indent-level controls the amount of indentation.
(run-hooks 'nginx-mode-hook))
;;;###autoload
-(add-to-list 'auto-mode-alist
- '("nginx\.conf$" . nginx-mode)
- '("/etc/nginx/.*" . nginx-mode))
+(add-to-list 'auto-mode-alist '("nginx\\.conf\\'" . nginx-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("/nginx/.*\\.conf\\'" . nginx-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("/nginx/sites-\\(?:available\\|enabled\\)/" . nginx-mode))
(provide 'nginx-mode)