Refactor :lang auto-mode-alist entries
This commit is contained in:
parent
23d887303d
commit
6b573bc66b
7 changed files with 14 additions and 13 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
|
||||
(def-package! json-mode
|
||||
:mode "\\.js\\(on\\|[hl]int\\(rc\\)?\\)$"
|
||||
:mode "\\.js\\(?:on\\|[hl]int\\(rc\\)?\\)$"
|
||||
:config
|
||||
(when (featurep! :feature syntax-checker)
|
||||
(add-hook 'json-mode-hook #'flycheck-mode))
|
||||
|
@ -30,17 +30,18 @@
|
|||
(set! :company-backend 'nxml-mode '(company-nxml company-yasnippet)))
|
||||
|
||||
|
||||
(def-package! toml-mode :mode "\\.toml$")
|
||||
(def-package! toml-mode
|
||||
:mode "\\.toml$")
|
||||
|
||||
|
||||
(def-package! vimrc-mode
|
||||
:mode "/\\.?g?vimrc$"
|
||||
:mode "\\.vim$"
|
||||
:mode "\\.?vimperatorrc$"
|
||||
:mode "\\.vimp$")
|
||||
:mode "\\.vimp?$"
|
||||
:mode "\\.?vimperatorrc$")
|
||||
|
||||
|
||||
(def-package! yaml-mode :mode "\\.ya?ml$")
|
||||
(def-package! yaml-mode
|
||||
:mode "\\.ya?ml$")
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue