Use lsp-elm and remove customizations
This commit is contained in:
parent
c264cf17ca
commit
b6d2c0fddf
3 changed files with 11 additions and 30 deletions
|
@ -1,14 +1,23 @@
|
|||
;;;; Elm mode configuration.
|
||||
(require 'jenga-functions)
|
||||
(instl 'elm-mode)
|
||||
(instl 'lsp-mode)
|
||||
(instl 'lsp-ui)
|
||||
(instl 'yasnippet)
|
||||
|
||||
(add-hook 'elm-mode-hook #'company-mode)
|
||||
(add-hook 'elm-mode-hook #'rainbow-delimiters-mode)
|
||||
(add-hook 'elm-mode-hook #'lsp)
|
||||
(add-hook 'elm-mode-hook (lambda () (setq evil-auto-indent nil)))
|
||||
|
||||
(add-hook 'after-init-hook #'global-flycheck-mode)
|
||||
(with-eval-after-load 'flycheck
|
||||
'(add-hook 'flycheck-mode-hook #'flycheck-elm-setup))
|
||||
|
||||
(add-to-list 'company-backends 'company-elm)
|
||||
(define-key elm-mode-map (kbd "TAB") #'company-indent-or-complete-common)
|
||||
|
||||
;; Turn on Elm mode with *.elm files.
|
||||
(add-to-list 'auto-mode-alist '("\\.elm\\'" . elm-mode))
|
||||
(add-to-list 'company-backends 'company-elm)
|
||||
|
||||
(setq elm-format-on-save t
|
||||
elm-tags-on-save t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue