init.el: Fix bugs in Haskell mode config

Do not start intero automatically. Intero's whitelist and
blacklist feature does not really work and creates problems
for non intero/stack projects. Remove go format call with
before-save hook as it resulted in go format being called
on a file before saving and changing the major mode.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-02-22 16:20:15 +05:30
parent 82a8392fff
commit 594c11169c

12
init.el
View file

@ -641,14 +641,15 @@
:hook
((haskell-mode . hindent-mode)
(haskell-mode . company-mode)
(haskell-mode . interactive-haskell-mode))
(haskell-mode . interactive-haskell-mode)
(haskell-mode . #'flycheck-haskell-setup))
:custom
((haskell-stylish-on-save t)
(haskell-process-suggest-remove-import-lines t)))
(use-package flycheck-haskell
:defer t)
(use-package intero
:defer t
:hook
(haskell-mode . intero-mode))
:defer t)
(use-package hindent
:defer t)
(use-package hlint-refactor
@ -725,7 +726,6 @@
:init
(setq-local tab-width 8)
:hook
((before-save . 'gofmt-before-save)
(go-mode . company-mode)))
(go-mode . company-mode))
;;; init.el ends