equal
deleted
inserted
replaced
1 ;; ~/.emacs.d/haskell-init.el |
|
2 ;; Luke Hoersten <[email protected]> |
|
3 |
|
4 (add-to-list 'load-path "~/.emacs.d/thirdparty/haskell-mode/") |
|
5 (require 'haskell-mode-autoloads) |
|
6 |
|
7 ;; (add-to-list 'load-path "~/.emacs.d/thirdparty/haskell-mode") ; override haskell mode on system |
|
8 ;;(add-to-list 'load-path "~/.cabal/share/ghc-mod-2.0.2") ; load ghc-mod from cabal |
|
9 ;; (autoload 'ghc-init "~/.emacs.d/thirdparty/ghc-mod-2.0.2/ghc" nil t) |
|
10 |
|
11 ;; (load "haskell-site-file") |
|
12 |
|
13 ;; ;; scion |
|
14 ;; (if (file-exists-p "~/.cabal/share/scion-0.3/emacs/scion.el") |
|
15 ;; (progn |
|
16 ;; (add-to-list 'load-path "~/.cabal/share/scion-0.3/emacs") |
|
17 ;; (require 'scion) |
|
18 ;; (setq scion-program "~/.cabal/bin/scion-server") |
|
19 ;; (add-hook |
|
20 ;; 'haskell-mode-hook |
|
21 ;; (lambda () |
|
22 ;; (scion-mode 1) |
|
23 ;; (scion-flycheck-on-save 1) |
|
24 ;; (setq scion-completing-read-function 'ido-completing-read))))) |
|
25 |
|
26 (add-hook |
|
27 'haskell-mode-hook |
|
28 (lambda () |
|
29 ;; (ghc-init) |
|
30 (turn-on-haskell-indent) |
|
31 (capitalized-words-mode) |
|
32 (turn-on-haskell-doc-mode) |
|
33 (turn-on-haskell-decl-scan) |
|
34 (imenu-add-menubar-index) |
|
35 (setq |
|
36 haskell-font-lock-haddock t |
|
37 haskell-stylish-on-save t |
|
38 ;; haskell-tags-on-save t |
|
39 haskell-program-name "ghci" |
|
40 haskell-indent-offset 4 |
|
41 whitespace-line-column 78) |
|
42 )) |
|
43 |
|
44 (message "Loading haskell-init...done") |
|
45 (provide 'haskell-init) |
|