author | Luke Hoersten <Luke@Hoersten.org> |
Sun, 05 Jun 2011 17:40:33 -0500 | |
changeset 41 | 14679e8ab2ae |
parent 40 | 886afd628fa2 |
child 44 | 6e66ab8d9185 |
permissions | -rw-r--r-- |
40
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
1 |
;; ~/.emacs.d/haskell-init.el |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
2 |
;; Luke Hoersten <[email protected]> |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
3 |
|
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
4 |
;; scion |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
5 |
(if (file-exists-p "~/.cabal/share/scion-0.1.0.10/emacs") |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
6 |
(progn |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
7 |
(add-to-list 'load-path "~/.cabal/share/scion-0.1.0.10/emacs") |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
8 |
(require 'scion) |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
9 |
(setq scion-program "~/.cabal/bin/scion-server") |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
10 |
(add-hook |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
11 |
'haskell-mode-hook |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
12 |
(lambda () |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
13 |
(scion-mode 1) |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
14 |
(scion-flycheck-on-save 1) |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
15 |
(setq scion-completing-read-function 'ido-completing-read))))) |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
16 |
|
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
17 |
(add-hook |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
18 |
'haskell-mode-hook |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
19 |
(lambda () |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
20 |
(haskell-indentation-mode nil) |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
21 |
(haskell-indent-mode t) |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
22 |
(capitalized-words-mode t) |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
23 |
(haskell-doc-mode t) |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
24 |
(setq |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
25 |
haskell-indent-offset 4 |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
26 |
whitespace-line-column 78)) |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
27 |
t) ; append instead of prepend else haskell-mode overwrites these settings |
41
14679e8ab2ae
Fixed proved/require bugs.
Luke Hoersten <Luke@Hoersten.org>
parents:
40
diff
changeset
|
28 |
(provide 'haskell-init) |