2017-06-08 11:47:56 +02:00
|
|
|
;;; lang/haskell/config.el -*- lexical-binding: t; -*-
|
2016-03-29 01:06:37 -04:00
|
|
|
|
2017-10-03 00:52:16 +02:00
|
|
|
(cond ((featurep! +intero) (load! +intero))
|
|
|
|
((featurep! +dante) (load! +dante)))
|
|
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
;; Common plugins
|
|
|
|
;;
|
|
|
|
|
2017-03-16 17:22:13 -04:00
|
|
|
(def-package! haskell-mode
|
2017-05-25 20:09:36 +02:00
|
|
|
:mode "\\.hs$"
|
|
|
|
:mode ("\\.ghci$" . ghci-script-mode)
|
|
|
|
:mode ("\\.cabal$" . haskell-cabal-mode)
|
2016-04-10 18:50:45 -04:00
|
|
|
:interpreter (("runghc" . haskell-mode)
|
|
|
|
("runhaskell" . haskell-mode))
|
2016-03-31 13:17:42 -04:00
|
|
|
:config
|
2017-04-17 02:17:10 -04:00
|
|
|
(set! :repl 'haskell-mode #'switch-to-haskell)
|
2017-03-16 17:22:13 -04:00
|
|
|
(push ".hi" completion-ignored-extensions)
|
2016-03-29 18:11:56 -04:00
|
|
|
|
2017-03-16 17:22:13 -04:00
|
|
|
(autoload 'switch-to-haskell "inf-haskell" nil t)
|
|
|
|
(after! inf-haskell
|
2018-03-01 01:12:23 -05:00
|
|
|
(map! :map inferior-haskell-mode-map "ESC ESC" #'+popup/close)))
|
2017-08-08 19:14:58 +02:00
|
|
|
|