Change flycheck initialization strategy
Initialize it globally and turn it off where needed, instead of enabling it on demand. Also fixes void-function: flycheck-mode errors when :feature syntax-checker is disabled. This is experimental. Indirectly fixes #710
This commit is contained in:
parent
dbc7b667cf
commit
e05d7cfee0
24 changed files with 26 additions and 49 deletions
|
@ -43,7 +43,7 @@
|
|||
js2-strict-trailing-comma-warning nil
|
||||
js2-strict-missing-semi-warning nil)
|
||||
|
||||
(add-hook! 'js2-mode-hook #'(flycheck-mode rainbow-delimiters-mode))
|
||||
(add-hook 'js2-mode-hook #'rainbow-delimiters-mode)
|
||||
;; Indent switch-case another step
|
||||
(setq-hook! 'js2-mode-hook js-switch-indent-offset js2-basic-offset)
|
||||
|
||||
|
@ -84,7 +84,7 @@
|
|||
|
||||
|
||||
(after! typescript-mode
|
||||
(add-hook! 'typescript-mode-hook #'(flycheck-mode rainbow-delimiters-mode))
|
||||
(add-hook 'typescript-mode-hook #'rainbow-delimiters-mode)
|
||||
(setq-hook! 'typescript-mode-hook
|
||||
comment-line-break-function #'js2-line-break)
|
||||
(set-electric! 'typescript-mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue