Refactor elm+flycheck integration #686
Ensure flycheck is started soon enough and its initializing code is grouped with flycheck-elm's config.
This commit is contained in:
parent
253fd77b2a
commit
5aeea4dcae
1 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
(setq elm-format-on-save t)
|
||||
|
||||
(after! elm-mode
|
||||
(add-hook! 'elm-mode-hook #'(flycheck-mode rainbow-delimiters-mode))
|
||||
(add-hook 'elm-mode-hook #'rainbow-delimiters-mode)
|
||||
(set-company-backend! 'elm-mode 'company-elm)
|
||||
(set-repl-handler! 'elm-mode #'run-elm-interactive))
|
||||
|
||||
|
@ -12,5 +12,6 @@
|
|||
(def-package! flycheck-elm
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:after elm-mode
|
||||
:hook (flycheck-mode . flycheck-elm-setup))
|
||||
:init (add-hook 'elm-mode-hook #'flycheck-mode)
|
||||
:config (add-to-list 'flycheck-checkers 'elm nil #'eq))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue