author | Luke Hoersten <Luke@Hoersten.org> |
Sat, 22 Jun 2013 22:54:53 -0500 | |
changeset 54 | e1b82f67f96e |
parent 53 | 0b3217376059 |
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 |
|
54 | 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") |
|
53 | 12 |
|
13 |
;; ;; scion |
|
14 |
;; (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
|
15 |
;; (progn |
53 | 16 |
;; (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
|
17 |
;; (require 'scion) |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
18 |
;; (setq scion-program "~/.cabal/bin/scion-server") |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
19 |
;; (add-hook |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
20 |
;; 'haskell-mode-hook |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
21 |
;; (lambda () |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
22 |
;; (scion-mode 1) |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
23 |
;; (scion-flycheck-on-save 1) |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
24 |
;; (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
|
25 |
|
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
26 |
(add-hook |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
27 |
'haskell-mode-hook |
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
28 |
(lambda () |
54 | 29 |
;; (ghc-init) |
53 | 30 |
(turn-on-haskell-indent) |
31 |
(capitalized-words-mode) |
|
32 |
(turn-on-haskell-doc-mode) |
|
33 |
(turn-on-haskell-decl-scan) |
|
45
12715da9a300
Changes to reflect Ubuntu 11.10 upgrade.
Luke Hoersten <Luke@Hoersten.org>
parents:
44
diff
changeset
|
34 |
(imenu-add-menubar-index) |
40
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
35 |
(setq |
53 | 36 |
haskell-font-lock-haddock t |
37 |
haskell-stylish-on-save t |
|
38 |
;; haskell-tags-on-save t |
|
45
12715da9a300
Changes to reflect Ubuntu 11.10 upgrade.
Luke Hoersten <Luke@Hoersten.org>
parents:
44
diff
changeset
|
39 |
haskell-program-name "ghci" |
40
886afd628fa2
Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff
changeset
|
40 |
haskell-indent-offset 4 |
53 | 41 |
whitespace-line-column 78) |
42 |
)) |
|
44
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
43 |
|
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
44 |
(message "Loading haskell-init...done") |
6e66ab8d9185
Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
41
diff
changeset
|
45 |
(provide 'haskell-init) |