lang/elm: first attempt

This commit is contained in:
Valentin Robert 2017-05-20 18:11:34 -07:00
parent 3a0a2c5481
commit 978394fe31
3 changed files with 25 additions and 0 deletions

View file

@ -72,6 +72,7 @@
crystal ; ruby at the speed of c crystal ; ruby at the speed of c
csharp ; unity, .NET, and mono shenanigans csharp ; unity, .NET, and mono shenanigans
data ; config/data formats data ; config/data formats
elm ; care for a cup of TEA?
emacs-lisp ; drown in parentheses emacs-lisp ; drown in parentheses
go ; the hipster dialect go ; the hipster dialect
haskell ; a language that's lazier than I am haskell ; a language that's lazier than I am

View file

@ -0,0 +1,18 @@
;;; lang/elm/config.el
(def-package! elm-mode
:mode "\\.elm$"
:init
(add-hook 'elm-mode-hook #'flycheck-mode)
(add-hook 'elm-mode-hook #'rainbow-delimiters-mode)
:config
(set! :company-backend 'elm-mode '(company-elm))
(setq elm-format-on-save t)
)
(def-package! flycheck-elm
:after elm-mode
:config
(add-hook! 'flycheck-mode-hook #'flycheck-elm-setup)
)

View file

@ -0,0 +1,6 @@
;; -*- no-byte-compile: t; -*-
;;; lang/elm/packages.el
(package! flycheck-elm)
(package! elm-mode)