From 124452adbba458b0d164198660aeadcf5d4d40ac Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 29 Mar 2016 18:11:56 -0400 Subject: [PATCH] haskell: integrate repl --- modules/module-haskell.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/module-haskell.el b/modules/module-haskell.el index f22146402..0af2fea44 100644 --- a/modules/module-haskell.el +++ b/modules/module-haskell.el @@ -3,8 +3,17 @@ (use-package haskell-mode :mode "\\.hs$" :config + (define-repl! haskell-mode switch-to-haskell) + ;; haskell-mode complains that this function isn't defined, and it isn't! - (defun haskell-mode-after-save-handler ())) + (defun haskell-mode-after-save-handler ()) + + (use-package inf-haskell + :commands (switch-to-haskell) + :init (evil-set-initial-state 'inferior-haskell-mode 'emacs) + :config + (map! :map inf-haskell-mode-map + "ESC ESC" 'narf/popup-close))) (provide 'module-haskell) ;;; module-haskell.el ends here