(when (maybe-require-package 'elm-mode)
  (setq-default elm-format-on-save t)
  (after-load 'elm-mode
    (diminish 'elm-indent-mode)
    (when (executable-find "elm-oracle")
      (add-hook 'elm-mode-hook 'elm-oracle-setup-completion))
    (when (executable-find "elm-format")
      (setq-default elm-format-on-save t)))
  (when (maybe-require-package 'flycheck-elm)
    (after-load 'elm-mode
      (flycheck-elm-setup))))

(provide 'init-elm)

(when (maybe-require-package 'elm-mode)
  (setq-default elm-format-on-save t)
  (after-load 'elm-mode
    (diminish 'elm-indent-mode)
    (add-hook 'elm-mode-hook
              (lambda () (sanityinc/local-push-company-backend 'company-elm)))
    (when (executable-find "elm-format")
      (setq-default elm-format-on-save t)))
  (when (maybe-require-package 'flycheck-elm)
    (after-load 'elm-mode
      (flycheck-elm-setup))))

(provide 'init-elm)

Use company instead of completion-at-point in elm-mode
Use company instead of completion-at-point in elm-mode

purcell/emacs.d,baohaojun/emacs.d,qianwan/emacs.d,cjqw/emacs.d,me020523/emacs.d,roxolan/emacs.d,blueseason/emacs.d,kindoblue/emacs.d,svenyurgensson/emacs.d,sgarciac/emacs.d,arthurl/emacs.d,benkha/emacs.d,braveoyster/emacs.d,lust4life/emacs.d,emuio/emacs.d,wegatron/emacs.d,mmqmzk/emacs.d,blueabysm/emacs.d,krzysz00/emacs.d,gsmlg/emacs.d,dcorking/emacs.d,kongfy/emacs.d