Skip to content

Commit

Permalink
Default elm-format-on-save to t if elm-format is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Mar 24, 2017
1 parent 1933071 commit 40bdfa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisp/init-elm.el
Expand Up @@ -2,7 +2,9 @@
(after-load 'elm-mode
(diminish 'elm-indent-mode)
(when (executable-find "elm-oracle")
(add-hook 'elm-mode-hook 'elm-oracle-setup-completion)))
(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))))
Expand Down

0 comments on commit 40bdfa8

Please sign in to comment.