elm: fix flycheck not working on subdirectories
This commit is contained in:
parent
121fb065ee
commit
ed95c18610
|
@ -23,8 +23,12 @@
|
|||
(spacemacs|add-company-hook elm-mode)
|
||||
(add-hook 'elm-mode-hook 'elm-oracle-setup-completion))
|
||||
|
||||
(defun spacemacs//elm-find-root ()
|
||||
(setq default-directory (elm--find-dependency-file-path)))
|
||||
|
||||
(defun elm/post-init-flycheck ()
|
||||
(add-hook 'elm-mode-hook 'flycheck-mode))
|
||||
(add-hook 'elm-mode-hook 'flycheck-mode)
|
||||
(add-hook 'elm-mode-hook '#'spacemacs//elm-find-root))
|
||||
|
||||
(when (configuration-layer/layer-usedp 'syntax-checking)
|
||||
(defun elm/init-flycheck-elm ()
|
||||
|
|
Loading…
Reference in a new issue