equal
deleted
inserted
replaced
|
1 ;; ~/.emacs.d/haskell-init.el |
|
2 ;; Luke Hoersten <[email protected]> |
|
3 |
|
4 ;; scion |
|
5 (if (file-exists-p "~/.cabal/share/scion-0.1.0.10/emacs") |
|
6 (progn |
|
7 (add-to-list 'load-path "~/.cabal/share/scion-0.1.0.10/emacs") |
|
8 (require 'scion) |
|
9 (setq scion-program "~/.cabal/bin/scion-server") |
|
10 (add-hook |
|
11 'haskell-mode-hook |
|
12 (lambda () |
|
13 (scion-mode 1) |
|
14 (scion-flycheck-on-save 1) |
|
15 (setq scion-completing-read-function 'ido-completing-read))))) |
|
16 |
|
17 (add-hook |
|
18 'haskell-mode-hook |
|
19 (lambda () |
|
20 (haskell-indentation-mode nil) |
|
21 (haskell-indent-mode t) |
|
22 (capitalized-words-mode t) |
|
23 (haskell-doc-mode t) |
|
24 (setq |
|
25 haskell-indent-offset 4 |
|
26 whitespace-line-column 78)) |
|
27 t) ; append instead of prepend else haskell-mode overwrites these settings |