Add elm-format-on-save-mode to elm-mode-hook

Instead of calling this manually.
This commit is contained in:
William Carroll 2020-10-10 17:03:08 +01:00
parent fbd5e7fb18
commit 02ce74eada

View file

@ -91,7 +91,9 @@
(general-add-hook wpc-javascript--frontend-hooks #'prettier-js-mode)) (general-add-hook wpc-javascript--frontend-hooks #'prettier-js-mode))
;; Support Elm ;; Support Elm
(use-package elm-mode) (use-package elm-mode
:config
(add-hook 'elm-mode-hook #'elm-format-on-save-mode))
(provide 'wpc-javascript) (provide 'wpc-javascript)
;;; wpc-javascript.el ends here ;;; wpc-javascript.el ends here