doomemacs/modules/module-haskell.el

21 lines
700 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))
2016-05-25 10:15:44 +08:00
:init (add-hook! haskell-mode '(interactive-haskell-mode flycheck-mode))
:config
2016-05-25 09:57:25 +08:00
(def-popup! "*debug:haskell*" :size 20)
(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)
2016-05-25 10:15:44 +08:00
:config (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