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:
Henrik Lissner 2024-09-12 06:33:09 -04:00
parent 73460f42fd
commit d735c9be3d
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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