doomemacs/modules/module-haskell.el
2016-03-31 13:23:16 -04:00

19 lines
624 B
EmacsLisp

;;; module-haskell.el
(use-package haskell
:mode ("\\.hs$" . haskell-mode)
:init
(define-repl! haskell-mode switch-to-haskell)
(add-hook 'haskell-mode-hook 'interactive-haskell-mode)
:config
;; haskell-mode complains that this function isn't defined, and it isn't!
(defun haskell-mode-after-save-handler ()))
(use-package inf-haskell
:commands (inferior-haskell-mode inf-haskell-mode switch-to-haskell)
:init (evil-set-initial-state 'inferior-haskell-mode 'emacs)
:config
(define-key inf-haskell-mode-map (kbd "ESC ESC") 'narf/popup-close))
(provide 'module-haskell)
;;; module-haskell.el ends here