author | Luke Hoersten <Luke@Hoersten.org> |
Mon, 15 Oct 2012 20:31:39 -0500 | |
changeset 53 | 0b3217376059 |
parent 45 | 12715da9a300 |
child 54 | e1b82f67f96e |
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 |
|
53 | 4 |
(add-to-list 'load-path "~/.emacs.d/thirdparty/haskell-mode") ; override haskell mode on system |
5 |
(load "haskell-site-file") |
|
6 |
||
7 |
;; ;; scion |
|
8 |
;; (if (file-exists-p "~/.cabal/share/scion-0.3/emacs/scion.el") |
|
44
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
9 |
;; (progn |
53 | 10 |
;; (add-to-list 'load-path "~/.cabal/share/scion-0.3/emacs") |
44
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
11 |
;; (require 'scion) |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
12 |
;; (setq scion-program "~/.cabal/bin/scion-server") |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
13 |
;; (add-hook |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
14 |
;; 'haskell-mode-hook |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
15 |
;; (lambda () |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
16 |
;; (scion-mode 1) |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
17 |
;; (scion-flycheck-on-save 1) |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
18 |
;; (setq scion-completing-read-function 'ido-completing-read))))) |
40
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
19 |
|
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
20 |
(add-hook |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
21 |
'haskell-mode-hook |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
22 |
(lambda () |
53 | 23 |
(turn-on-haskell-indent) |
24 |
(capitalized-words-mode) |
|
25 |
(turn-on-haskell-doc-mode) |
|
26 |
(turn-on-haskell-decl-scan) |
|
45
12715da9a300
Changes to reflect Ubuntu 11.10 upgrade.
Luke Hoersten <Luke@Hoersten.org>
parents:
44
diff
changeset
|
27 |
(imenu-add-menubar-index) |
53 | 28 |
(local-set-key (kbd "C-x C-s") 'haskell-mode-save-buffer) |
40
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
29 |
(setq |
53 | 30 |
haskell-font-lock-haddock t |
31 |
haskell-stylish-on-save t |
|
32 |
;; haskell-tags-on-save t |
|
45
12715da9a300
Changes to reflect Ubuntu 11.10 upgrade.
Luke Hoersten <Luke@Hoersten.org>
parents:
44
diff
changeset
|
33 |
haskell-program-name "ghci" |
40
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
34 |
haskell-indent-offset 4 |
53 | 35 |
whitespace-line-column 78) |
36 |
)) |
|
44
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
37 |
|
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
38 |
(message "Loading haskell-init...done") |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
39 |
(provide 'haskell-init) |