doomemacs/modules/lang/haskell/config.el
2017-02-20 00:26:08 -05:00

20 lines
669 B
EmacsLisp

;;; module-haskell.el
(@def-package haskell
:mode (("\\.hs$" . haskell-mode)
("\\.ghci$" . ghci-script-mode)
("\\.cabal$" . haskell-cabal-mode))
:interpreter (("runghc" . haskell-mode)
("runhaskell" . haskell-mode))
:init
(@add-hook haskell-mode '(interactive-haskell-mode flycheck-mode))
:config
(@set :popup "*debug:haskell*" :size 20)
(@set :repl 'haskell-mode 'switch-to-haskell)
(push ".hi" completion-ignored-extensions))
(@def-package inf-haskell ; part of haskell
:commands (inferior-haskell-mode inf-haskell-mode switch-to-haskell)
:config (@map :map inf-haskell-mode-map "ESC ESC" 'doom/popup-close))