mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -8,9 +8,9 @@
|
|||||||
"Initializes `intero-mode' in haskell-mode, unless stack isn't installed.
|
"Initializes `intero-mode' in haskell-mode, unless stack isn't installed.
|
||||||
This is necessary because `intero-mode' doesn't do its own error checks."
|
This is necessary because `intero-mode' doesn't do its own error checks."
|
||||||
(when (derived-mode-p 'haskell-mode)
|
(when (derived-mode-p 'haskell-mode)
|
||||||
(if (executable-find "intero")
|
(if (executable-find "stack")
|
||||||
(intero-mode +1)
|
(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)
|
(add-hook 'haskell-mode-hook #'+haskell|init-intero)
|
||||||
:config
|
:config
|
||||||
(set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition))
|
(set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition))
|
||||||
|
Reference in New Issue
Block a user