init.el: Update emacs config
Allow automatic updation of packages. We do not have LSP integration working yet. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
2cff6bd574
commit
82e327b213
1 changed files with 21 additions and 5 deletions
26
init.el
26
init.el
|
@ -79,6 +79,13 @@
|
||||||
:config
|
:config
|
||||||
(evil-mode 1))
|
(evil-mode 1))
|
||||||
|
|
||||||
|
(use-package auto-package-update
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(setq auto-package-update-delete-old-versions t
|
||||||
|
auto-package-update-interval 4)
|
||||||
|
(auto-package-update-maybe))
|
||||||
|
|
||||||
(use-package evil-escape
|
(use-package evil-escape
|
||||||
:ensure t
|
:ensure t
|
||||||
:init
|
:init
|
||||||
|
@ -184,16 +191,25 @@
|
||||||
(haskell-stylish-on-save t)
|
(haskell-stylish-on-save t)
|
||||||
(haskell-process-suggest-remove-import-lines t))
|
(haskell-process-suggest-remove-import-lines t))
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:defer t
|
|
||||||
:ensure t
|
:ensure t
|
||||||
:commands lsp)
|
:commands lsp)
|
||||||
(use-package lsp-ui
|
(use-package lsp-ui
|
||||||
:requires lsp-mode
|
:ensure t
|
||||||
|
:after lsp-mode
|
||||||
:hook
|
:hook
|
||||||
((lsp-mode-hook . lsp-ui-mode)
|
((lsp-mode . lsp-ui-mode)
|
||||||
(haskell-mode-hook . flycheck-mode)))
|
(lsp-ui-mode . lsp-ui-peek-mode)
|
||||||
|
(haskell-mode . lsp-haskell-enable)
|
||||||
|
(haskell-mode . flycheck-mode)
|
||||||
|
(rust-mode . lsp-rust-enable)
|
||||||
|
(rust-mode . flycheck-mode)
|
||||||
|
(python-mode . lsp-python-enable)
|
||||||
|
(python-mode . flycheck-mode)
|
||||||
|
))
|
||||||
(use-package company-lsp
|
(use-package company-lsp
|
||||||
:commands company-lsp)
|
:commands company-lsp
|
||||||
|
:config
|
||||||
|
(push 'company-lsp company-backends))
|
||||||
|
|
||||||
(use-package lsp-haskell
|
(use-package lsp-haskell
|
||||||
:defer t
|
:defer t
|
||||||
|
|
Loading…
Reference in a new issue