lang/haskell: add intero support #158

To use dante instead, change `haskell` to `(haskell +dante)` in
~/.emacs.d/init.el.
This commit is contained in:
Henrik Lissner
2017-08-08 19:14:58 +02:00
parent d173ae1ed8
commit 56382f1215
4 changed files with 55 additions and 15 deletions

View File

@ -0,0 +1,21 @@
;;; 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))