fix(graphviz): don't eagerly load flycheck at startup
Due to eager expansion of the flycheck-define-checker macro. Causes a hefty delay in startup times.
This commit is contained in:
parent
73460f42fd
commit
d735c9be3d
1 changed files with 8 additions and 8 deletions
|
@ -19,14 +19,14 @@
|
||||||
(when (and (modulep! :checker syntax)
|
(when (and (modulep! :checker syntax)
|
||||||
(not (modulep! :checker syntax +flymake)))
|
(not (modulep! :checker syntax +flymake)))
|
||||||
(after! flycheck
|
(after! flycheck
|
||||||
(flycheck-define-checker graphviz-dot
|
(eval '(flycheck-define-checker graphviz-dot
|
||||||
"A checker using graphviz dot."
|
"A checker using graphviz dot."
|
||||||
:command ("dot")
|
:command ("dot")
|
||||||
:standard-input t
|
:standard-input t
|
||||||
:error-patterns ((error line-start "Error: <stdin>: " (message "syntax error in line " line (* nonl)))
|
:error-patterns ((error line-start "Error: <stdin>: " (message "syntax error in line " line (* nonl)))
|
||||||
;; I have no idea if this can actually be printed
|
;; I have no idea if this can actually be printed
|
||||||
(error line-start "Error: <stdin>: " (message)))
|
(error line-start "Error: <stdin>: " (message)))
|
||||||
:modes graphviz-dot-mode)
|
:modes graphviz-dot-mode))
|
||||||
(add-to-list 'flycheck-checkers 'graphviz-dot)))
|
(add-to-list 'flycheck-checkers 'graphviz-dot)))
|
||||||
|
|
||||||
(map! :map graphviz-dot-mode-map
|
(map! :map graphviz-dot-mode-map
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue