doomemacs/modules/lang/haskell/+intero.el
Henrik Lissner 56382f1215
lang/haskell: add intero support #158
To use dante instead, change `haskell` to `(haskell +dante)` in
~/.emacs.d/init.el.
2017-08-09 14:52:48 +02:00

21 lines
593 B
EmacsLisp

;;; lang/haskell/+intero.el -*- lexical-binding: t; -*-
(def-package! intero
:commands intero-mode
:init
(add-hook 'haskell-mode-hook #'intero-mode)
:config
(unless (executable-find "stack")
(warn "haskell-mode: couldn't find stack, disabling intero")
(remove-hook 'haskell-mode-hook #'intero-mode))
(add-hook! 'intero-mode-hook #'(flycheck-mode eldoc-mode))
(set! :popup "^intero:backend:" :regex t :size 12)
(set! :jump :definition #'intero-goto-definition))
(def-package! hindent
:commands hindent-mode
:init
(add-hook 'haskell-mode-hook #'hindent-mode))