Fix elm to not switch to root directory

This commit is contained in:
Kevin van Rooijen 2016-12-27 23:44:03 +01:00 committed by syl20bnr
parent c1e805cb46
commit 9a69d45107
2 changed files with 1 additions and 5 deletions

View file

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

View file

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