equal
deleted
inserted
replaced
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 (add-to-list 'load-path "~/.emacs.d/thirdparty/haskell-mode") ; override haskell mode on system |
4 (add-to-list 'load-path "~/.emacs.d/thirdparty/haskell-mode/") |
5 (load "haskell-site-file") |
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") |
6 |
12 |
7 ;; ;; scion |
13 ;; ;; scion |
8 ;; (if (file-exists-p "~/.cabal/share/scion-0.3/emacs/scion.el") |
14 ;; (if (file-exists-p "~/.cabal/share/scion-0.3/emacs/scion.el") |
9 ;; (progn |
15 ;; (progn |
10 ;; (add-to-list 'load-path "~/.cabal/share/scion-0.3/emacs") |
16 ;; (add-to-list 'load-path "~/.cabal/share/scion-0.3/emacs") |
18 ;; (setq scion-completing-read-function 'ido-completing-read))))) |
24 ;; (setq scion-completing-read-function 'ido-completing-read))))) |
19 |
25 |
20 (add-hook |
26 (add-hook |
21 'haskell-mode-hook |
27 'haskell-mode-hook |
22 (lambda () |
28 (lambda () |
|
29 ;; (ghc-init) |
23 (turn-on-haskell-indent) |
30 (turn-on-haskell-indent) |
24 (capitalized-words-mode) |
31 (capitalized-words-mode) |
25 (turn-on-haskell-doc-mode) |
32 (turn-on-haskell-doc-mode) |
26 (turn-on-haskell-decl-scan) |
33 (turn-on-haskell-decl-scan) |
27 (imenu-add-menubar-index) |
34 (imenu-add-menubar-index) |
28 (local-set-key (kbd "C-x C-s") 'haskell-mode-save-buffer) |
|
29 (setq |
35 (setq |
30 haskell-font-lock-haddock t |
36 haskell-font-lock-haddock t |
31 haskell-stylish-on-save t |
37 haskell-stylish-on-save t |
32 ;; haskell-tags-on-save t |
38 ;; haskell-tags-on-save t |
33 haskell-program-name "ghci" |
39 haskell-program-name "ghci" |