Skip to content

Commit

Permalink
F9 in Haskell mode launches cabal build
Browse files Browse the repository at this point in the history
  • Loading branch information
r-darwish committed Jan 29, 2014
1 parent a97bbb7 commit 0c94227
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion parts/032-haskell.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@
(autoload 'turn-on-haskell-ghci "haskell-ghci"
"Turn on interaction with a GHCi interpreter." t)

(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
(setq haskell-process-suggest-hoogle-imports nil)

(add-hook 'haskell-mode-hook
(lambda ()
(turn-on-haskell-indentation)
(define-key haskell-mode-map (kbd "<f9>") 'haskell-process-cabal-build)
))

(add-hook 'haskell-interactive-mode-hook
(lambda ()
(define-key haskell-interactive-mode-map (kbd "<f9>") 'haskell-process-cabal-build)
))
;; (add-hook 'haskell-mode-hook 'turn-on-haskell-ghci)
;; (add-to-list 'load-path (in-modes-d "ghc-mod/elisp"))
;; (autoload 'ghc-init "ghc" nil t)
Expand Down

0 comments on commit 0c94227

Please sign in to comment.