mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Refuse to enable intero-mode if intero is absent
Rather than checking for stack.
This commit is contained in:
@ -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 "stack")
|
||||
(if (executable-find "intero")
|
||||
(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)
|
||||
:config
|
||||
(set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition))
|
||||
|
Reference in New Issue
Block a user