| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
magic-fallback-mode-alist.
As mentioned in issue #6, Nginx configuration today is often edited
indirectly as part of a CMS, and the files are often fragments rather
than a single nginx.conf.
By adding the common top-level blocks to a magic mode alist, we can
still automatically detect these files. By choosing the fallback
alist, we still allow other major modes to make a stronger claim based
on extension or literal content / interpreter match.
|
| |
|
|\
| |
| | |
Remove `run-hook`, it is run automatically.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hi.
When using `define-derived-mode` one doesn't need (and shouldn't) use `run-hook` because the macro adds the form `run-mode-hook` itself when expanded (use macroexpand to check!).
This results in the hook being called twice, see
```elisp
(defun my-nginx-mode-init ()
(message "Hello"))
(add-hook 'nginx-mode-hook 'my-nginx-mode-init)
```
In messages I have
Hello [2 times]
Simply removing the form and using the one provided by the macro is enough to fix this.
|
| |
|
|\
| |
| |
| |
| | |
zonuexe/feature/comment-syntax-table
Use syntax table instead of font-lock regexp
|
|/ |
|
|
|
|
| |
- add a MELPA link
- make the GPL version in the README match the one in the code :facepalm:
|
| |
|
| |
|
|\
| |
| | |
fixed auto-mode-alist
|
| |
| |
| |
| | |
apache-mode autoloads)
|
| | |
|
|/ |
|
| |
|
| |
|
|\
| |
| | |
Update Readme with an example
|
| |
| |
| | |
added a line on how to load all files in a directory with nginx-mode.
|
|\ \
| | |
| | | |
Set auto-mode-alist at top-level and Add autoload cookie
|
| |/ |
|
|\ \
| |/
|/|
| |
| | |
yasuyk/remove-duplicated-provide-form
Remove duplicated provide form
|
|/ |
|
| |
|
|
|
|
| |
anything else to highlight semicolons with, and really, it doesn't matter that much anyway. Fixes #5.
|
|
|
|
| |
@mbunkus - fixes #3.
|
| |
|
|
|
|
| |
https://github.com/ajc/nginx-mode/issues/#issue/1
|
|
|
|
|
|
| |
handy README.md file
(see http://jugglingbits.wordpress.com/2009/11/14/announcing-md-readme/ )
|
|
|
|
| |
such a good idea (my eyes!)
|
| |
|
| |
|
|
|