mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
21
modules/lang/haskell/+intero.el
Normal file
21
modules/lang/haskell/+intero.el
Normal 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))
|
Reference in New Issue
Block a user