doomemacs/modules/lang/haskell/config.el

21 lines
669 B
EmacsLisp
Raw Normal View History

2016-03-29 01:06:37 -04:00
;;; module-haskell.el
2017-02-19 18:57:16 -05:00
(@def-package haskell
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))
2017-02-19 18:57:16 -05:00
:init
(@add-hook haskell-mode '(interactive-haskell-mode flycheck-mode))
:config
2017-02-19 18:57:16 -05:00
(@set :popup "*debug:haskell*" :size 20)
(@set :repl 'haskell-mode 'switch-to-haskell)
2016-04-20 21:36:32 -04:00
(push ".hi" completion-ignored-extensions))
2016-03-29 18:11:56 -04:00
2017-02-19 18:57:16 -05:00
(@def-package inf-haskell ; part of haskell
:commands (inferior-haskell-mode inf-haskell-mode switch-to-haskell)
2017-02-19 18:57:16 -05:00
:config (@map :map inf-haskell-mode-map "ESC ESC" 'doom/popup-close))
2016-03-29 01:06:37 -04:00