diff options
author | Vasily Korytov | 2014-10-14 21:56:56 +0300 |
---|---|---|
committer | Vasily Korytov | 2014-10-14 21:56:56 +0300 |
commit | 82098c569cfc1362238a2d1e5322886ba765766a (patch) | |
tree | 7480a4ae3795053907e08dc9b9dd0fd3305d8220 /nginx-mode.el | |
parent | 81766b7f72c872aa4bda46b75e5f369f0edec52a (diff) | |
download | nginx-mode-82098c569cfc1362238a2d1e5322886ba765766a.tar.gz nginx-mode-82098c569cfc1362238a2d1e5322886ba765766a.zip |
auto-mode-alist now works :-)
Diffstat (limited to 'nginx-mode.el')
-rw-r--r-- | nginx-mode.el | 8 |
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) |