init.el: Update emacs config
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
9e94ed906c
commit
b714662d2a
1 changed files with 28 additions and 19 deletions
47
init.el
47
init.el
|
@ -725,31 +725,40 @@
|
||||||
;;; Language Support
|
;;; Language Support
|
||||||
|
|
||||||
;; Haskell support
|
;; Haskell support
|
||||||
|
(use-package haskell-mode
|
||||||
|
:defer t
|
||||||
|
:init
|
||||||
|
(electric-indent-mode 0)
|
||||||
|
:custom
|
||||||
|
((haskell-process-type 'stack-ghci)
|
||||||
|
(haskell-process-suggest-remove-import-lines t)
|
||||||
|
(haskell-process-auto-import-loaded-modules t)
|
||||||
|
(haskell-process-log t)
|
||||||
|
(haskell-stylish-on-save t)
|
||||||
|
|
||||||
|
(haskell-indentation-layout-offset 4)
|
||||||
|
(haskell-indentation-starter-offset 4)
|
||||||
|
(haskell-indentation-left-offset 4)
|
||||||
|
(haskell-indentation-where-pre-offset 4)
|
||||||
|
(haskell-indentation-where-post-offset 4)))
|
||||||
|
(use-package flycheck-haskell
|
||||||
|
:defer t
|
||||||
|
:config
|
||||||
|
(setq-default flycheck-disabled-checkers '(haskell-stack-ghc))
|
||||||
|
:hook
|
||||||
|
(haskell-mode . #'flycheck-haskell-setup))
|
||||||
(use-package company-ghci
|
(use-package company-ghci
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
(push 'company-ghci company-backends)
|
(push 'company-ghci company-backends)
|
||||||
:hook
|
:hook
|
||||||
((haskell-mode . company-mode)
|
(haskell-interactive-mode . company-mode))
|
||||||
(haskell-interactive-mode . company-mode)))
|
|
||||||
(use-package haskell-mode
|
|
||||||
:defer t
|
|
||||||
:init
|
|
||||||
(electric-indent-mode 0)
|
|
||||||
:config
|
|
||||||
(push 'company-ghci company-backends)
|
|
||||||
:hook
|
|
||||||
((haskell-mode . hindent-mode)
|
|
||||||
(haskell-mode . company-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 hindent
|
(use-package hindent
|
||||||
:defer t)
|
:defer t
|
||||||
|
:config
|
||||||
|
(setq-default hindent-reformat-buffer-on-save t)
|
||||||
|
:hook
|
||||||
|
(haskell-mode . #'hindent-mode))
|
||||||
(use-package hlint-refactor
|
(use-package hlint-refactor
|
||||||
:defer t)
|
:defer t)
|
||||||
(use-package rainbow-delimiters
|
(use-package rainbow-delimiters
|
||||||
|
|
Loading…
Reference in a new issue