Fix intero-goto-definition #683 #684

It wasn't working in the first haskell buffer because of a race
condition. Intero was loading too late to register lookup handlers for
haskell-mode (for the first buffer).

By setting it to intero-mode, it is registered in time for intero-mode's
activation.
This commit is contained in:
Henrik Lissner 2018-06-15 22:16:49 +02:00
parent fe6a9b0cd8
commit 253fd77b2a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -14,7 +14,7 @@ This is necessary because `intero-mode' doesn't do its own error checks."
(add-hook 'haskell-mode-hook #'+haskell|init-intero) (add-hook 'haskell-mode-hook #'+haskell|init-intero)
:config :config
(add-hook 'intero-mode-hook #'flycheck-mode) (add-hook 'intero-mode-hook #'flycheck-mode)
(set-lookup-handlers! 'haskell-mode :definition #'intero-goto-definition)) (set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition))
(def-package! hindent (def-package! hindent