add lua/vimrc/yaml/nginx mode
This commit is contained in:
7 files changed
+54
No files matched your search
+12
@@ -148,3 +148,15 @@
|
||||
[submodule "site-lisp/gntp"]
|
||||
path = site-lisp/gntp
|
||||
url = https://github.com/tekai/gntp.el.git
|
||||
[submodule "site-lisp/vimrc-mode"]
|
||||
path = site-lisp/vimrc-mode
|
||||
url = https://github.com/mcandre/vimrc-mode.git
|
||||
[submodule "site-lisp/yaml-mode"]
|
||||
path = site-lisp/yaml-mode
|
||||
url = https://github.com/yoshiki/yaml-mode.git
|
||||
[submodule "site-lisp/lua-mode"]
|
||||
path = site-lisp/lua-mode
|
||||
url = https://github.com/immerrr/lua-mode.git
|
||||
[submodule "site-lisp/nginx-mode"]
|
||||
path = site-lisp/nginx-mode
|
||||
url = https://github.com/ajc/nginx-mode.git
|
||||
@@ -124,6 +124,7 @@ If freezing sometimes, decrease it. If stuttering, increase it.")
|
||||
(require 'init-emmet)
|
||||
(require 'init-flymake)
|
||||
(require 'init-org)
|
||||
(require 'init-file)
|
||||
|
||||
|
||||
(setq custom-file (expand-file-name "custom.el" creature/cache-dir))
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
;; -*- coding: utf-8; lexical-binding: t; -*-
|
||||
|
||||
(autoload 'vimrc-mode "vimrc-mode" "" t)
|
||||
(add-to-list 'auto-mode-alist '("\\.vim\\(rc\\)?\\'" . vimrc-mode))
|
||||
|
||||
|
||||
(autoload 'yaml-mode "yaml-mode" "" t)
|
||||
(add-to-list 'auto-mode-alist '("\\.\\(e?ya?\\|ra\\)ml\\'" . yaml-mode))
|
||||
(add-to-list 'magic-mode-alist
|
||||
'("^%YAML\\s-+[0-9]+\\.[0-9]+\\(\\s-+#\\|\\s-*$\\)" . yaml-mode))
|
||||
|
||||
|
||||
(autoload 'lua-mode "lua-mode" "" t)
|
||||
(add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
|
||||
(add-to-list 'interpreter-mode-alist '("lua" . lua-mode))
|
||||
|
||||
|
||||
(autoload 'nginx-mode "nginx-mode" "" t)
|
||||
(add-to-list 'auto-mode-alist '("nginx\\.conf\\'" . nginx-mode))
|
||||
(add-to-list 'auto-mode-alist '("/nginx/.+\\.conf\\'" . nginx-mode))
|
||||
(add-to-list 'auto-mode-alist
|
||||
'("/nginx/sites-\\(?:available\\|enabled\\)/" . nginx-mode))
|
||||
(add-to-list
|
||||
'magic-fallback-mode-alist
|
||||
'("\\(?:.*\n\\)*\\(?:http\\|server\\|location .+\\|upstream .+\\)[ \n\t]+{"
|
||||
. nginx-mode))
|
||||
|
||||
|
||||
(add-to-list 'auto-mode-alist '("package\\.env\\'" . conf-mode))
|
||||
(add-to-list 'auto-mode-alist '("package\\.use\\'" . conf-mode))
|
||||
(add-to-list 'auto-mode-alist '("package\\.mask\\'" . conf-mode))
|
||||
(add-to-list 'auto-mode-alist '("package\\.license\\'" . conf-mode))
|
||||
(add-to-list 'auto-mode-alist '("package\\.keywords\\'" . conf-mode))
|
||||
(add-to-list 'auto-mode-alist '("package\\.accept_keywords\\'" . conf-mode))
|
||||
|
||||
|
||||
(provide 'init-file)
|
||||
Submodule
+1
Submodule site-lisp/lua-mode added at 3e783c93aa.
Submodule
+1
Submodule site-lisp/nginx-mode added at 6e9d96f58e.
Submodule
+1
Submodule site-lisp/vimrc-mode added at 13bc150a87.
Submodule
+1
Submodule site-lisp/yaml-mode added at 3fcb36d603.
Reference in new issue
Block a user