doomemacs/modules/lang/haskell/+intero.el

19 lines
488 B
EmacsLisp
Raw Normal View History

;;; lang/haskell/+intero.el -*- lexical-binding: t; -*-
;;;###if (featurep! +intero)
(def-package! intero
:after haskell-mode
:config
(add-hook 'haskell-mode-hook #'+haskell|init-intero)
(unless (executable-find "stack")
2018-02-14 07:40:05 -05:00
(warn! "Couldn't find stack. Intero has been disabled."))
(add-hook! 'intero-mode-hook #'(flycheck-mode eldoc-mode))
2018-01-05 23:55:04 -05:00
(set! :lookup 'haskell-mode :definition #'intero-goto-definition))
(def-package! hindent
:hook (haskell-mode . hindent-mode))