doomemacs/modules/lang/elm/config.el

27 lines
669 B
EmacsLisp
Raw Normal View History

;;; lang/elm/config.el -*- lexical-binding: t; -*-
2017-05-20 18:11:34 -07:00
(after! elm-mode
(if (modulep! +lsp)
(add-hook 'elm-mode-local-vars-hook #'lsp! 'append)
2020-04-22 17:25:30 -04:00
(set-company-backend! 'elm-mode 'company-elm))
(when (modulep! +tree-sitter)
(add-hook 'elm-mode-local-vars-hook #'tree-sitter! 'append))
2020-04-22 17:25:30 -04:00
(set-repl-handler! 'elm-mode #'run-elm-interactive)
(set-ligatures! '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
(use-package! flycheck-elm
:when (modulep! :checkers syntax)
:after elm-mode
2020-04-22 17:25:30 -04:00
:config (add-to-list 'flycheck-checkers 'elm))