Fix elm to not switch to root directory
This commit is contained in:
parent
c1e805cb46
commit
9a69d45107
|
@ -12,9 +12,6 @@
|
|||
|
||||
;; elm-mode
|
||||
|
||||
(defun spacemacs//elm-find-root ()
|
||||
(setq default-directory (elm--find-dependency-file-path)))
|
||||
|
||||
(defun spacemacs/elm-compile-buffer-output ()
|
||||
(interactive)
|
||||
(let* ((fname (format "%s.js" (downcase (file-name-base (buffer-file-name))))))
|
||||
|
|
|
@ -24,8 +24,7 @@
|
|||
(add-hook 'elm-mode-hook 'elm-oracle-setup-completion))
|
||||
|
||||
(defun elm/post-init-flycheck ()
|
||||
(add-hook 'elm-mode-hook 'flycheck-mode)
|
||||
(add-hook 'elm-mode-hook 'spacemacs//elm-find-root))
|
||||
(add-hook 'elm-mode-hook 'flycheck-mode))
|
||||
|
||||
(defun elm/init-flycheck-elm ()
|
||||
"Initialize flycheck-elm"
|
||||
|
|
Loading…
Reference in a new issue