emacs.d/modules/jenga-elm.el

25 lines
709 B
EmacsLisp
Raw Normal View History

2019-12-07 23:09:25 +01:00
;;;; Elm mode configuration.
2020-01-05 23:51:24 +01:00
(use-package elm-mode
:ensure t
:bind
("M-<tab>" . company-indent-or-complete-common)
:config
(use-package lsp-mode)
(use-package lsp-ui)
(use-package company)
(setq elm-format-on-save t
elm-tags-on-save t
elm-tags-exclude-elm-stuff nil)
(add-to-list 'company-backends 'company-elm)
(add-to-list 'auto-mode-alist '("\\.elm\\'" . elm-mode))
:hook
(after-init . global-flycheck-mode)
(elm-mode . company-mode)
(elm-mode . lsp)
(elm-mode . (lambda () (setq evil-auto-indent nil))))
2019-12-07 23:09:25 +01:00
2019-12-08 15:17:31 +01:00
(with-eval-after-load 'flycheck
'(add-hook 'flycheck-mode-hook #'flycheck-elm-setup))
2019-12-07 23:09:25 +01:00
(provide 'jenga-elm)