aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2018-10-04 12:26:41 -0500
committerJesús <heckyel@hyperbola.info>2018-10-04 12:26:41 -0500
commitbff67e0c33216993289096eb1530aca9630841ce (patch)
tree9fc13bd8610af3e83e8dc133283bb45bca94c1cf
parentc4ed81a9a81887addf3389482c0fb77f111fce81 (diff)
downloademacs-personal-bff67e0c33216993289096eb1530aca9630841ce.tar.lz
emacs-personal-bff67e0c33216993289096eb1530aca9630841ce.tar.xz
emacs-personal-bff67e0c33216993289096eb1530aca9630841ce.zip
Added major mode for editing nginx config files
-rw-r--r--custom.el2
-rw-r--r--init.el1
-rw-r--r--lisp/init-nginx.el8
3 files changed, 10 insertions, 1 deletions
diff --git a/custom.el b/custom.el
index 8ece644..516f806 100644
--- a/custom.el
+++ b/custom.el
@@ -12,7 +12,7 @@
'(ecb-options-version "2.50")
'(package-selected-packages
(quote
- (all-the-icons neotree emmet-mode ecb undo-tree pip-requirements jedi highlight-indent-guides yaml-mode whitespace-cleanup-mode sublime-themes sml-modeline smarty-mode smart-mode-line-powerline-theme scss-mode sass-mode rainbow-mode prettier-js pkgbuild-mode pcre2el nlinum markdown-mode less-css-mode flycheck editorconfig anzu ac-php))))
+ (nginx-mode all-the-icons neotree emmet-mode ecb undo-tree pip-requirements jedi highlight-indent-guides yaml-mode whitespace-cleanup-mode sublime-themes sml-modeline smarty-mode smart-mode-line-powerline-theme scss-mode sass-mode rainbow-mode prettier-js pkgbuild-mode pcre2el nlinum markdown-mode less-css-mode flycheck editorconfig anzu ac-php))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
diff --git a/init.el b/init.el
index 71c8c4b..1b95c63 100644
--- a/init.el
+++ b/init.el
@@ -43,6 +43,7 @@
(require 'init-flycheck)
(require 'init-whitespace)
(require 'init-emmet-mode)
+(require 'init-nginx)
;;(require 'init-editorconfig)
;; Languages
(require 'init-ccc)
diff --git a/lisp/init-nginx.el b/lisp/init-nginx.el
new file mode 100644
index 0000000..cff947f
--- /dev/null
+++ b/lisp/init-nginx.el
@@ -0,0 +1,8 @@
+;;---------------------------
+;; Nginx Mode
+;;---------------------------
+(require-package 'nginx-mode)
+
+(add-to-list 'auto-mode-alist '("/nginx/sites-\\(?:available\\|enabled\\)/" . nginx-mode))
+
+(provide 'init-nginx)