Refactor :lang auto-mode-alist entries

This commit is contained in:
Henrik Lissner 2018-05-07 18:18:07 +02:00
parent 23d887303d
commit 6b573bc66b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
7 changed files with 14 additions and 13 deletions

View file

@ -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$")
;;