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