From 82098c569cfc1362238a2d1e5322886ba765766a Mon Sep 17 00:00:00 2001 From: Vasily Korytov Date: Tue, 14 Oct 2014 21:56:56 +0300 Subject: auto-mode-alist now works :-) --- nginx-mode.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nginx-mode.el') 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) -- cgit v1.2.3-54-g00ecf