lang/data: enable flycheck-mode for json-mode
This commit is contained in:
parent
acb77c8407
commit
294f858875
1 changed files with 2 additions and 0 deletions
|
@ -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 ?: ?{ ?})))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue