Revert "Refuse to enable intero-mode if intero is absent"

This reverts commit 4f40fef592.

This was short sighted. The intero check doesn't find per-project built
instances of intero.
This commit is contained in:
Henrik Lissner 2018-07-03 02:30:56 +02:00
parent 2764bc6ed5
commit 65d2b01333
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -8,9 +8,9 @@
"Initializes `intero-mode' in haskell-mode, unless stack isn't installed.
This is necessary because `intero-mode' doesn't do its own error checks."
(when (derived-mode-p 'haskell-mode)
(if (executable-find "intero")
(if (executable-find "stack")
(intero-mode +1)
(message "Couldn't find intero. Refusing to enable intero-mode."))))
(message "Couldn't find stack. Refusing to enable intero-mode."))))
(add-hook 'haskell-mode-hook #'+haskell|init-intero)
:config
(set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition))