summaryrefslogtreecommitdiffstatshomepage
path: root/nginx-mode.el
diff options
context:
space:
mode:
authorGravatar Vasily Korytov2014-10-14 21:56:56 +0300
committerGravatar Vasily Korytov2014-10-14 21:56:56 +0300
commit82098c569cfc1362238a2d1e5322886ba765766a (patch)
tree7480a4ae3795053907e08dc9b9dd0fd3305d8220 /nginx-mode.el
parent81766b7f72c872aa4bda46b75e5f369f0edec52a (diff)
downloadnginx-mode-82098c569cfc1362238a2d1e5322886ba765766a.tar.gz
nginx-mode-82098c569cfc1362238a2d1e5322886ba765766a.zip
auto-mode-alist now works :-)
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)