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)
|
||||
(not (modulep! :checker syntax +flymake)))
|
||||
(after! flycheck
|
||||
(flycheck-define-checker graphviz-dot
|
||||
"A checker using graphviz dot."
|
||||
:command ("dot")
|
||||
:standard-input t
|
||||
:error-patterns ((error line-start "Error: <stdin>: " (message "syntax error in line " line (* nonl)))
|
||||
;; I have no idea if this can actually be printed
|
||||
(error line-start "Error: <stdin>: " (message)))
|
||||
:modes graphviz-dot-mode)
|
||||
(eval '(flycheck-define-checker graphviz-dot
|
||||
"A checker using graphviz dot."
|
||||
:command ("dot")
|
||||
:standard-input t
|
||||
:error-patterns ((error line-start "Error: <stdin>: " (message "syntax error in line " line (* nonl)))
|
||||
;; I have no idea if this can actually be printed
|
||||
(error line-start "Error: <stdin>: " (message)))
|
||||
:modes graphviz-dot-mode))
|
||||
(add-to-list 'flycheck-checkers 'graphviz-dot)))
|
||||
|
||||
(map! :map graphviz-dot-mode-map
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue