2017-08-08 19:14:58 +02:00
|
|
|
;;; 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)
|
2017-10-03 00:52:16 +02:00
|
|
|
(set! :jump 'haskell-mode :definition #'intero-goto-definition))
|
2017-08-08 19:14:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
(def-package! hindent
|
|
|
|
:commands hindent-mode
|
|
|
|
:init
|
|
|
|
(add-hook 'haskell-mode-hook #'hindent-mode))
|