doomemacs/modules/lang/haskell/config.el

29 lines
791 B
EmacsLisp
Raw Normal View History

2016-03-29 01:06:37 -04:00
;;; module-haskell.el
2017-03-16 23:39:35 -04:00
;; requires cabal (flycheck), ghci/hugs (repl)
(def-package! haskell-mode
2016-04-08 14:07:16 -04:00
:mode (("\\.hs$" . haskell-mode)
("\\.ghci$" . ghci-script-mode)
("\\.cabal$" . haskell-cabal-mode))
:interpreter (("runghc" . haskell-mode)
("runhaskell" . haskell-mode))
:config
(load "haskell-mode-autoloads" nil t)
(set! :popup "*debug:haskell*" :size 20)
(set! :repl 'haskell-mode 'switch-to-haskell)
(push ".hi" completion-ignored-extensions)
2016-03-29 18:11:56 -04:00
(autoload 'switch-to-haskell "inf-haskell" nil t)
(after! inf-haskell
(map! :map inf-haskell-mode-map "ESC ESC" 'doom/popup-close)))
2017-02-19 18:57:16 -05:00
(def-package! dante
:after haskell-mode
:config
(when (executable-find "cabal")
(add-hook! 'haskell-mode-hook '(flycheck-mode dante-mode))))
2016-03-29 01:06:37 -04:00