doomemacs/modules/lang/elm/config.el

26 lines
598 B
EmacsLisp
Raw Normal View History

;;; lang/elm/config.el -*- lexical-binding: t; -*-
2017-05-20 18:11:34 -07:00
;; `elm-mode'
(setq elm-format-on-save t)
(after! elm-mode
(add-hook 'elm-mode-hook #'rainbow-delimiters-mode)
(set-company-backend! 'elm-mode 'company-elm)
(set-repl-handler! 'elm-mode #'run-elm-interactive)
(set-pretty-symbols! 'elm-mode
:null "null"
:true "true" :false "false"
:int "Int" :str "String"
:float "Float"
:bool "Bool"
:not "not"
:and "&&" :or "||"))
2017-05-25 20:11:24 +02:00
2017-05-20 18:11:34 -07:00
(def-package! flycheck-elm
:when (featurep! :tools flycheck)
:after elm-mode
:config (add-to-list 'flycheck-checkers 'elm nil #'eq))
2017-05-20 18:11:34 -07:00