doomemacs/modules/module-haskell.el

23 lines
728 B
EmacsLisp
Raw Normal View History

2016-03-29 01:06:37 -04:00
;;; module-haskell.el
(use-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))
:init
2016-03-29 18:11:56 -04:00
(define-repl! haskell-mode switch-to-haskell)
2016-04-02 13:22:49 -04:00
(add-hook! haskell-mode '(interactive-haskell-mode flycheck-mode))
:config
2016-04-20 21:36:32 -04:00
(push ".hi" completion-ignored-extensions))
2016-03-29 18:11:56 -04:00
(use-package inf-haskell
:commands (inferior-haskell-mode inf-haskell-mode switch-to-haskell)
:init (evil-set-initial-state 'inferior-haskell-mode 'emacs)
:config
2016-04-20 21:36:32 -04:00
(map! :map inf-haskell-mode-map "ESC ESC" 'narf/popup-close))
2016-03-29 01:06:37 -04:00
(provide 'module-haskell)
;;; module-haskell.el ends here