diff options
Diffstat (limited to 'nginx-mode.el')
-rw-r--r-- | nginx-mode.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nginx-mode.el b/nginx-mode.el index 8195a00..75d074d 100644 --- a/nginx-mode.el +++ b/nginx-mode.el @@ -185,9 +185,9 @@ 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)) (provide 'nginx-mode) |