init.el: Update emacs config for Haskell
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
ff7b923738
commit
04ded4c85b
1 changed files with 10 additions and 6 deletions
16
init.el
16
init.el
|
@ -178,15 +178,20 @@
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
;; For Haskell & Rust Support
|
;; For Haskell & Rust Support
|
||||||
|
(use-package haskell-mode
|
||||||
|
:ensure t
|
||||||
|
:custom
|
||||||
|
(haskell-stylish-on-save t)
|
||||||
|
(haskell-process-suggest-remove-import-lines t))
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:defer t
|
:defer t
|
||||||
:ensure t
|
:ensure t
|
||||||
:commands lsp)
|
:commands lsp)
|
||||||
(use-package lsp-ui
|
(use-package lsp-ui
|
||||||
:commands lsp-ui-mode
|
:requires lsp-mode
|
||||||
:config
|
:hook
|
||||||
((add-hook 'lsp-mode-hook 'lsp-ui-mode)
|
((lsp-mode-hook . lsp-ui-mode)
|
||||||
(add-hook 'haskell-mode-hook 'flycheck-mode)))
|
(haskell-mode-hook . flycheck-mode)))
|
||||||
(use-package company-lsp
|
(use-package company-lsp
|
||||||
:commands company-lsp)
|
:commands company-lsp)
|
||||||
|
|
||||||
|
@ -194,8 +199,7 @@
|
||||||
:defer t
|
:defer t
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
((add-hook 'haskell-mode-hook #'lsp)
|
(setq lsp-haskell-process-path-hie "hie-wrapper"))
|
||||||
(setq lsp-haskell-process-path-hie "~/.local/bin/hie-wrapper")))
|
|
||||||
|
|
||||||
(use-package rust-mode
|
(use-package rust-mode
|
||||||
:defer t
|
:defer t
|
||||||
|
|
Loading…
Reference in a new issue