Simplify initialization of flycheck-haskell

This commit is contained in:
syl20bnr 2015-03-22 03:11:54 -04:00
parent 51c5de624d
commit 814b56ba26

View file

@ -13,7 +13,6 @@
(defvar haskell-packages
'(
company-ghc
flycheck
flycheck-haskell
ghc
haskell-mode
@ -23,9 +22,9 @@
))
(defun haskell/init-flycheck-haskell ()
(add-hook 'haskell-mode-hook 'flycheck-mode)
(add-hook 'flycheck-mode-hook 'flycheck-haskell-setup)
(setq flycheck-display-errors-delay 0))
(use-package flycheck-haskell
:defer t
:init (add-hook 'haskell-mode-hook 'flycheck-haskell-setup)))
(defun haskell/init-shm ()
(use-package shm