;;; init-elm.el --- Support for the Elm language -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:

(when (maybe-require-package 'elm-mode)
  (after-load 'elm-mode
    (diminish 'elm-indent-mode)
    (after-load 'company
      (push 'company-elm company-backends))
    (when (executable-find "elm-format")
      (setq-default elm-format-on-save t)))
  (maybe-require-package 'elm-test-runner)
  (when (maybe-require-package 'flycheck-elm)
    (after-load 'elm-mode
      (flycheck-elm-setup))))

(provide 'init-elm)
;;; init-elm.el ends here

;;; init-elm.el --- Support for the Elm language -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:

(when (maybe-require-package 'elm-mode)
  (after-load 'elm-mode
    (diminish 'elm-indent-mode)
    (after-load 'company
      (push 'company-elm company-backends))
    (when (executable-find "elm-format")
      (setq-default elm-format-on-save t)))
  (maybe-require-package 'elm-test-runner)
  (when (maybe-require-package 'flycheck-elm)
    (after-load 'elm-mode
      (flycheck-elm-setup)))
  (when (maybe-require-package 'add-node-modules-path)
    (add-hook 'elm-mode-hook 'add-node-modules-path)))

(provide 'init-elm)
;;; init-elm.el ends here

Use add-node-modules-path in Elm, for tooling installed with npm
Use add-node-modules-path in Elm, for tooling installed with npm

blueseason/emacs.d,braveoyster/emacs.d,purcell/emacs.d,arthurl/emacs.d,qianwan/emacs.d,lust4life/emacs.d,emuio/emacs.d,krzysz00/emacs.d,baohaojun/emacs.d,gsmlg/emacs.d,dcorking/emacs.d,svenyurgensson/emacs.d,blueabysm/emacs.d,sgarciac/emacs.d