Move what you can to LSP

This commit is contained in:
Maciej 2020-07-21 20:13:38 +03:00
parent 55b75ab70c
commit 55735b37c5
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
11 changed files with 44 additions and 138 deletions

View file

@ -1,17 +1,17 @@
(use-package alchemist
:requires (ruby-end-mode)
(use-package elixir-mode
:requires (lsp-mode lsp-ui)
:ensure t
:defer t)
:config)
(defun activate-elixir-mode ()
"All things Elixir."
(set-indent 2)
(column-enforce-n 98)
(setq-local flycheck-check-syntax-automatically '(save mode-enabled))
(define-key elixir-mode-map (kbd "<f17>") 'elixir-format)
;; Company list override
(add-to-list (make-local-variable 'company-backends)
'(alchemist-company company-yasnippet)))
'(company-capf company-yasnippet)))
(add-hook 'elixir-mode-hook 'alchemist-mode)
(add-hook 'alchemist-mode-hook 'activate-elixir-mode)
(add-hook 'elixir-mode-hook 'ruby-end-mode)
(add-hook 'elixir-mode-hook 'activate-elixir-mode)