commit
b72a9373c1
4 changed files with 12 additions and 11 deletions
|
@ -14,7 +14,3 @@ 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
|
||||||
(set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition))
|
(set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition))
|
||||||
|
|
||||||
|
|
||||||
(def-package! hindent
|
|
||||||
:hook (haskell-mode . hindent-mode))
|
|
||||||
|
|
|
@ -3,11 +3,13 @@
|
||||||
(cond ((featurep! +intero) (load! "+intero"))
|
(cond ((featurep! +intero) (load! "+intero"))
|
||||||
((featurep! +dante) (load! "+dante")))
|
((featurep! +dante) (load! "+dante")))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Common plugins
|
;; Common plugins
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
(def-package! hindent
|
||||||
|
:hook (haskell-mode . hindent-mode))
|
||||||
|
|
||||||
(after! haskell-mode
|
(after! haskell-mode
|
||||||
(set-repl-handler! 'haskell-mode #'switch-to-haskell)
|
(set-repl-handler! 'haskell-mode #'switch-to-haskell)
|
||||||
(add-to-list 'completion-ignored-extensions ".hi"))
|
(add-to-list 'completion-ignored-extensions ".hi"))
|
||||||
|
|
|
@ -3,11 +3,14 @@
|
||||||
|
|
||||||
(when (featurep! +dante)
|
(when (featurep! +dante)
|
||||||
(unless (executable-find "cabal")
|
(unless (executable-find "cabal")
|
||||||
(warn! "Couldn't find cabal, haskell-mode may have issues"))
|
(warn! "Couldn't find cabal, haskell-mode may have issues."))
|
||||||
(unless (executable-find "hlint")
|
(unless (executable-find "hlint")
|
||||||
(warn! "Couldn't find hlint. Flycheck may have issues in haskell-mode/")))
|
(warn! "Couldn't find hlint. Flycheck may have issues in haskell-mode.")))
|
||||||
|
|
||||||
(when (featurep! +intero)
|
(when (featurep! +intero)
|
||||||
(unless (executable-find "stack")
|
(unless (executable-find "stack")
|
||||||
(warn! "Couldn't find stack. Intero will not work")))
|
(warn! "Couldn't find stack. Intero will not work.")))
|
||||||
|
|
||||||
|
(unless (executable-find "hindent")
|
||||||
|
(warn! "Couldn't find hindent. hindent-mode won't work."))
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
;;
|
;;
|
||||||
(cond ((featurep! +dante)
|
(cond ((featurep! +dante)
|
||||||
(package! dante))
|
(package! dante))
|
||||||
(t
|
(t (package! intero)))
|
||||||
(package! intero)
|
|
||||||
(package! hindent)))
|
(package! hindent)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue