diff options
author | Jesús <heckyel@hyperbola.info> | 2018-10-04 12:26:41 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2018-10-04 12:26:41 -0500 |
commit | bff67e0c33216993289096eb1530aca9630841ce (patch) | |
tree | 9fc13bd8610af3e83e8dc133283bb45bca94c1cf | |
parent | c4ed81a9a81887addf3389482c0fb77f111fce81 (diff) | |
download | emacs-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.el | 2 | ||||
-rw-r--r-- | init.el | 1 | ||||
-rw-r--r-- | lisp/init-nginx.el | 8 |
3 files changed, 10 insertions, 1 deletions
@@ -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. @@ -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) |