elm: fix flycheck not working on subdirectories

This commit is contained in:
Alejandro Catalina Feliú 2016-02-08 22:54:59 +01:00 committed by syl20bnr
parent 121fb065ee
commit ed95c18610

View file

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