Permalink
Browse files

Enable more functionality in inferior-haskell-mode

  • Loading branch information...
1 parent fb1181b commit c165f2fdb9425c681eba3d525eb54157216a8f17 @purcell committed Mar 13, 2013
Showing with 7 additions and 6 deletions.
  1. +7 −6 init-haskell.el
View
@@ -1,13 +1,14 @@
(require-package 'haskell-mode)
-(add-hook 'haskell-mode-hook
- (lambda ()
- (define-key haskell-mode-map (kbd "C-c h") 'hoogle)
- (turn-on-haskell-doc-mode)
- (turn-on-haskell-indent)))
+(dolist (hook '(haskell-mode-hook inferior-haskell-mode-hook))
+ (add-hook hook 'turn-on-haskell-doc-mode))
+
+(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
(eval-after-load 'haskell-mode
- '(define-key haskell-mode-map (kbd "RET") 'newline))
+ '(progn
+ (define-key haskell-mode-map (kbd "C-c h") 'hoogle)
+ (define-key haskell-mode-map (kbd "RET") 'newline)))
(require-package 'ghci-completion)
(add-hook 'inferior-haskell-mode-hook 'turn-on-ghci-completion)

0 comments on commit c165f2f

Please sign in to comment.