You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,22 @@ Licensed under the [GPL version 3](http://www.gnu.org/licenses/) or later.
16
16
This is a quick mode for editing Nginx config files, as I didn't find
17
17
anything else around that did quite this much.
18
18
19
-
Many thanks to the authors of puppet-mode.el, from where I found a
19
+
Many thanks to the authors of `puppet-mode.el`, from where I found a
20
20
useful indentation function that I've modified to suit this situation.
21
21
22
-
Put this file into your load-path and the following into your ~/.emacs:
22
+
Put this file into your `load-path` and the following into your `~/.emacs`:
23
23
```lisp
24
24
(require 'nginx-mode)
25
25
```
26
26
27
-
The mode should automatically activate for files called `nginx.conf` and files under `/etc/nginx` - if not, you can add something like this to your init file:
27
+
The mode automatically activates for:
28
+
29
+
1. Files, called `nginx.conf`
30
+
2. Files ending in `.conf` under `nginx` directory
31
+
32
+
If you want `sites-enabled` dir, add this to `~/.emacs` (not done by
33
+
default, because can be shadowed by `apache-mode`):
0 commit comments