lang/data: enable flycheck-mode for json-mode

This commit is contained in:
Henrik Lissner 2018-01-28 04:29:10 -05:00
parent acb77c8407
commit 294f858875
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -18,6 +18,8 @@
(def-package! json-mode (def-package! json-mode
:mode "\\.js\\(on\\|[hl]int\\(rc\\)?\\)$" :mode "\\.js\\(on\\|[hl]int\\(rc\\)?\\)$"
:config :config
(when (featurep! :feature syntax-checker)
(add-hook 'json-mode-hook #'flycheck-mode))
(set! :electric 'json-mode :chars '(?\n ?: ?{ ?}))) (set! :electric 'json-mode :chars '(?\n ?: ?{ ?})))