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:
parent
82a8392fff
commit
594c11169c
1 changed files with 6 additions and 6 deletions
12
init.el
12
init.el
|
@ -641,14 +641,15 @@
|
||||||
:hook
|
:hook
|
||||||
((haskell-mode . hindent-mode)
|
((haskell-mode . hindent-mode)
|
||||||
(haskell-mode . company-mode)
|
(haskell-mode . company-mode)
|
||||||
(haskell-mode . interactive-haskell-mode))
|
(haskell-mode . interactive-haskell-mode)
|
||||||
|
(haskell-mode . #'flycheck-haskell-setup))
|
||||||
:custom
|
:custom
|
||||||
((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 flycheck-haskell
|
||||||
|
:defer t)
|
||||||
(use-package intero
|
(use-package intero
|
||||||
:defer t
|
:defer t)
|
||||||
:hook
|
|
||||||
(haskell-mode . intero-mode))
|
|
||||||
(use-package hindent
|
(use-package hindent
|
||||||
:defer t)
|
:defer t)
|
||||||
(use-package hlint-refactor
|
(use-package hlint-refactor
|
||||||
|
@ -725,7 +726,6 @@
|
||||||
:init
|
:init
|
||||||
(setq-local tab-width 8)
|
(setq-local tab-width 8)
|
||||||
:hook
|
:hook
|
||||||
((before-save . 'gofmt-before-save)
|
(go-mode . company-mode))
|
||||||
(go-mode . company-mode)))
|
|
||||||
|
|
||||||
;;; init.el ends
|
;;; init.el ends
|
||||||
|
|
Loading…
Reference in a new issue