18 lines
568 B
EmacsLisp
18 lines
568 B
EmacsLisp
;;; lang/haskell/config.el -*- lexical-binding: t; -*-
|
|
|
|
(cond ((featurep! +intero) (load! "+intero"))
|
|
((featurep! +dante) (load! "+dante")))
|
|
|
|
;;
|
|
;; Common plugins
|
|
;;
|
|
|
|
(def-package! hindent
|
|
:hook (haskell-mode . hindent-mode))
|
|
|
|
(after! haskell-mode
|
|
(add-hook 'haskell-mode-hook #'haskell-interactive-mode)
|
|
(set-file-template! 'haskell-mode :trigger #'haskell-auto-insert-module-template :project t)
|
|
(set-repl-handler! '(haskell-mode haskell-cabal-mode literate-haskell-mode) #'+haskell-repl-buffer)
|
|
(add-to-list 'completion-ignored-extensions ".hi"))
|
|
|