diff options
author | Pedro de Carvalho | 2014-03-21 18:58:48 +0000 |
---|---|---|
committer | Pedro de Carvalho | 2014-03-21 18:58:48 +0000 |
commit | f8f576915d1179463209a21443ebaa71eb07cb70 (patch) | |
tree | 66df9a809a03ff444e2eab788496aa9cd92ceff4 /README.md | |
parent | 06fe7300712ee20dd7c205dd3c3d68ee5ec98c89 (diff) | |
download | nginx-mode-f8f576915d1179463209a21443ebaa71eb07cb70.tar.gz nginx-mode-f8f576915d1179463209a21443ebaa71eb07cb70.zip |
Update Readme with an example
added a line on how to load all files in a directory with nginx-mode.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -20,7 +20,11 @@ Many thanks to the authors of puppet-mode.el, from where I found a useful indentation function that I've modified to suit this situation. Put this file into your load-path and the following into your ~/.emacs: +```lisp (require 'nginx-mode) +``` - - +Example: To load nginx-mode to all files in your /etc/nginx/sites-available use: +```lisp +(add-to-list 'auto-mode-alist '("/etc/nginx/sites-available/.*" . nginx-mode)) +``` |