about summary refs log tree commit diff
path: root/init/haskell.el
blob: af105e00e8acb4d6e2f70415b4a7731c8735013f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(require 'haskell-mode)

;; Setup for Haskell mode

;; Bindings

(eval-after-load "haskell-mode"
  '(define-key haskell-mode-map (kbd "C-c C-c") 'haskell-compile))

(eval-after-load "haskell-cabal"
  '(define-key haskell-cabal-mode-map (kbd "C-c C-c") 'haskell-compile))

(add-hook 'haskell-mode-hook 'hi2-mode)

;; Settings

(setq haskell-interactive-popup-errors t
      haskell-stylish-on-save t
      haskell-tags-on-save t
      haskell-process-suggest-remove-import-types t
      haskell-process-auto-import-loaded-modules t
      haskell-process-log t
      haskell-process-type 'cabal-repl)

(provide 'haskell)