about summary refs log tree commit diff
path: root/emacs/.emacs.d/wpc
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-10-10T16·03+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-10-10T16·03+0100
commit02ce74eada9df71f760bef4dc0eccddab8d6fbfe (patch)
tree3d4f35e44835bdcc4a7558a25625ad601426e1d6 /emacs/.emacs.d/wpc
parentfbd5e7fb1840e61ea5f29a106a40ac664a827179 (diff)
Add elm-format-on-save-mode to elm-mode-hook
Instead of calling this manually.
Diffstat (limited to 'emacs/.emacs.d/wpc')
-rw-r--r--emacs/.emacs.d/wpc/wpc-javascript.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-javascript.el b/emacs/.emacs.d/wpc/wpc-javascript.el
index fca8ed6b46a8..da84df66d409 100644
--- a/emacs/.emacs.d/wpc/wpc-javascript.el
+++ b/emacs/.emacs.d/wpc/wpc-javascript.el
@@ -91,7 +91,9 @@
   (general-add-hook wpc-javascript--frontend-hooks #'prettier-js-mode))
 
 ;; Support Elm
-(use-package elm-mode)
+(use-package elm-mode
+  :config
+  (add-hook 'elm-mode-hook #'elm-format-on-save-mode))
 
 (provide 'wpc-javascript)
 ;;; wpc-javascript.el ends here