src.nth.io/

summaryrefslogtreecommitdiff
path: root/haskell-init.el
blob: 2ea4acd9011e0e71b40163905012fca0766b5c37 (plain)
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
26
27
28
29
30
31
32
;; ~/.emacs.d/haskell-init.el
;; Luke Hoersten <[email protected]>

;; scion
;; (if (file-exists-p "~/.cabal/share/scion-0.1.0.10/emacs")
;;     (progn
;;       (add-to-list 'load-path "~/.cabal/share/scion-0.1.0.10/emacs")
;;       (require 'scion)
;;       (setq scion-program "~/.cabal/bin/scion-server")
;;       (add-hook
;;        'haskell-mode-hook
;;        (lambda ()
;;          (scion-mode 1)
;;          (scion-flycheck-on-save 1)
;;          (setq scion-completing-read-function 'ido-completing-read)))))

(add-hook
 'haskell-mode-hook
 (lambda ()
   (haskell-indentation-mode nil)
   (haskell-indent-mode t)
   (capitalized-words-mode t)
   (imenu-add-menubar-index)
   (haskell-doc-mode t)
   (setq
    haskell-program-name "ghci"
    haskell-indent-offset 4
    whitespace-line-column 78))
 t) ; append instead of prepend else haskell-mode overwrites these settings

(message "Loading haskell-init...done")
(provide 'haskell-init)