Refuse to enable intero-mode if intero is absent
Rather than checking for stack.
This commit is contained in:
parent
dceb9bea09
commit
4f40fef592
1 changed files with 2 additions and 2 deletions
|
@ -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 "stack")
|
(if (executable-find "intero")
|
||||||
(intero-mode +1)
|
(intero-mode +1)
|
||||||
(message "Couldn't find stack. Refusing to enable intero-mode."))))
|
(message "Couldn't find intero. 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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue