doomemacs/modules/module-haskell.el

22 lines
662 B
EmacsLisp
Raw Normal View History

2016-03-29 13:06:37 +08:00
;;; module-haskell.el
(use-package haskell
2016-04-09 02:07:16 +08:00
:mode (("\\.hs$" . haskell-mode)
("\\.ghci$" . ghci-script-mode)
("\\.cabal$" . haskell-cabal-mode))
:interpreter (("runghc" . haskell-mode)
("runhaskell" . haskell-mode))
:init
2016-04-03 01:22:49 +08:00
(add-hook! haskell-mode '(interactive-haskell-mode flycheck-mode))
:config
(def-repl! haskell-mode switch-to-haskell)
2016-04-21 09:36:32 +08:00
(push ".hi" completion-ignored-extensions))
2016-03-30 06:11:56 +08:00
(use-package inf-haskell
:commands (inferior-haskell-mode inf-haskell-mode switch-to-haskell)
:config
2016-05-21 10:37:30 +08:00
(map! :map inf-haskell-mode-map "ESC ESC" 'doom/popup-close))
2016-03-29 13:06:37 +08:00
(provide 'module-haskell)
;;; module-haskell.el ends here