[Haskell] Fix wrong order of custom ‘add-hook’ calls

This commit is contained in:
Daniel - 2017-11-11 12:05:15 +01:00
parent b8b770e505
commit 663c57cd36
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 1 additions and 1 deletions

View File

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