[Haskell] One hook for ‘company-mode’ is enough

This commit is contained in:
Daniel - 2017-11-12 12:36:51 +01:00
parent eb660677dd
commit 1e0f01890f
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 1 additions and 1 deletions

View File

@ -1241,10 +1241,10 @@ Certificates are assumed to be of the form *.crt."
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
(add-hook 'haskell-mode-hook
(lambda ()
(company-mode +1)
(set (make-local-variable 'company-backends)
(append '((company-capf company-dabbrev-code))
company-backends))))
(add-hook 'haskell-mode-hook 'company-mode)
(add-hook 'haskell-mode-hook 'flycheck-mode)
(require 'haskell-indentation)