24 lines
636 B
EmacsLisp
24 lines
636 B
EmacsLisp
;;; lang/haskell/config.el -*- lexical-binding: t; -*-
|
|
|
|
(cond ((featurep! +intero) (load! +intero))
|
|
((featurep! +dante) (load! +dante)))
|
|
|
|
|
|
;;
|
|
;; Common plugins
|
|
;;
|
|
|
|
(def-package! haskell-mode
|
|
:mode "\\.hs$"
|
|
:mode ("\\.ghci$" . ghci-script-mode)
|
|
:mode ("\\.cabal$" . haskell-cabal-mode)
|
|
:interpreter (("runghc" . haskell-mode)
|
|
("runhaskell" . haskell-mode))
|
|
:config
|
|
(set! :repl 'haskell-mode #'switch-to-haskell)
|
|
(push ".hi" completion-ignored-extensions)
|
|
|
|
(autoload 'switch-to-haskell "inf-haskell" nil t)
|
|
(after! inf-haskell
|
|
(map! :map inferior-haskell-mode-map "ESC ESC" #'+popup/close)))
|
|
|