init.el: Update emacs config for Haskell

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-02-06 23:06:27 +05:30
parent ff7b923738
commit 04ded4c85b

16
init.el
View file

@ -178,15 +178,20 @@
:ensure t)
;; 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
:defer t
:ensure t
:commands lsp)
(use-package lsp-ui
:commands lsp-ui-mode
:config
((add-hook 'lsp-mode-hook 'lsp-ui-mode)
(add-hook 'haskell-mode-hook 'flycheck-mode)))
:requires lsp-mode
:hook
((lsp-mode-hook . lsp-ui-mode)
(haskell-mode-hook . flycheck-mode)))
(use-package company-lsp
:commands company-lsp)
@ -194,8 +199,7 @@
:defer t
:ensure t
:config
((add-hook 'haskell-mode-hook #'lsp)
(setq lsp-haskell-process-path-hie "~/.local/bin/hie-wrapper")))
(setq lsp-haskell-process-path-hie "hie-wrapper"))
(use-package rust-mode
:defer t