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:
Henrik Lissner 2018-06-21 15:54:36 +02:00
parent dbc7b667cf
commit e05d7cfee0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
24 changed files with 26 additions and 49 deletions

View file

@ -165,9 +165,7 @@ compilation database is present in the project.")
(def-package! flycheck-irony
:when (featurep! :feature syntax-checker)
:config
(add-hook 'irony-mode-hook #'flycheck-mode)
(flycheck-irony-setup))
:config (flycheck-irony-setup))
(def-package! company-irony
:when (featurep! :completion company)