about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-04-11T16·45+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-04-11T16·45+0100
commite864074600bddf14c6f75bdd683d794705b22367 (patch)
tree2d21e4d3136c589fec12bc6f0684d0824949d76c
parent93bdebf9b288cf96e8c5f58109e6969bfaa84eb6 (diff)
Support elm-mode for Emacs
Instead of (ab)using haskell-mode, support elm-mode.

TODO: Support elm-format on buffer save
-rw-r--r--emacs/.emacs.d/wpc/wpc-javascript.el3
-rw-r--r--emacs/default.nix1
2 files changed, 4 insertions, 0 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-javascript.el b/emacs/.emacs.d/wpc/wpc-javascript.el
index 279b374e37ea..af3a2b4e1841 100644
--- a/emacs/.emacs.d/wpc/wpc-javascript.el
+++ b/emacs/.emacs.d/wpc/wpc-javascript.el
@@ -77,5 +77,8 @@
   :config
   (general-add-hook wpc/frontend-hooks #'prettier-js-mode))
 
+;; Support Elm
+(use-package elm-mode)
+
 (provide 'wpc-javascript)
 ;;; wpc-javascript.el ends here
diff --git a/emacs/default.nix b/emacs/default.nix
index 5ee63f7c9e3f..293c7d4da4e9 100644
--- a/emacs/default.nix
+++ b/emacs/default.nix
@@ -25,6 +25,7 @@ let
 
     (with epkgs.melpaPackages; [
       notmuch
+      elm-mode
       ts
       vterm
       base16-theme