Skip to content

Commit

Permalink
Enable more functionality in inferior-haskell-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Mar 13, 2013
1 parent fb1181b commit c165f2f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions init-haskell.el
Original file line number Original file line Diff line number Diff line change
@@ -1,13 +1,14 @@
(require-package 'haskell-mode) (require-package 'haskell-mode)


(add-hook 'haskell-mode-hook (dolist (hook '(haskell-mode-hook inferior-haskell-mode-hook))
(lambda () (add-hook hook 'turn-on-haskell-doc-mode))
(define-key haskell-mode-map (kbd "C-c h") 'hoogle)
(turn-on-haskell-doc-mode) (add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
(turn-on-haskell-indent)))


(eval-after-load 'haskell-mode (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) (require-package 'ghci-completion)
(add-hook 'inferior-haskell-mode-hook 'turn-on-ghci-completion) (add-hook 'inferior-haskell-mode-hook 'turn-on-ghci-completion)
Expand Down

0 comments on commit c165f2f

Please sign in to comment.