Reorganize modules
This commit is contained in:
parent
50ea98319f
commit
f453b3cee1
55 changed files with 0 additions and 1535 deletions
40
modules/lang/data/config.el
Normal file
40
modules/lang/data/config.el
Normal file
|
@ -0,0 +1,40 @@
|
|||
;;; module-data.el
|
||||
|
||||
(associate! conf-mode :match "/sxhkdrc$")
|
||||
|
||||
(associate! nxml-mode :match "\\.plist$")
|
||||
(after! nxml-mode
|
||||
(def-company-backend! nxml-mode (nxml yasnippet)))
|
||||
|
||||
(use-package toml-mode :mode "\\.toml$")
|
||||
|
||||
(use-package yaml-mode :mode "\\.ya?ml$"
|
||||
:config (def-electric! yaml-mode :chars (?\n ?\: ?\-)))
|
||||
|
||||
(use-package json-mode :mode "\\.js\\(on\\|[hl]int\\(rc\\)?\\)$"
|
||||
:config (def-electric! json-mode :chars (?\n ?: ?{ ?})))
|
||||
|
||||
(use-package vimrc-mode
|
||||
:mode ("/\\.?g?vimrc$" "\\.vim$" "/\\.vim/rc/.+$" "/\\.?vimperatorrc$" "\\.vimp$"))
|
||||
|
||||
(use-package dockerfile-mode :mode "/Dockerfile$"
|
||||
:config
|
||||
(def-docset! dockerfile-mode "docker")
|
||||
(def-builder! dockerfile-mode dockerfile-build-buffer "Dockerfile"))
|
||||
|
||||
;; For ROM hacking or debugging
|
||||
(use-package hexl-mode
|
||||
:mode ("\\.hex$" "\\.nes$"))
|
||||
|
||||
;;
|
||||
(def-project-type! ansible-mode "ans"
|
||||
:modes (yaml-mode)
|
||||
:files ("roles/")
|
||||
(def-company-backend! ansible-mode (ansible)))
|
||||
(use-package company-ansible :commands (company-ansible))
|
||||
|
||||
(def-project-type! vagrant "vagrant"
|
||||
:files ("Vagrantfile"))
|
||||
|
||||
(provide 'module-data)
|
||||
;;; module-data.el ends here
|
Loading…
Add table
Add a link
Reference in a new issue