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) :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