diff options
| author | Luke Hoersten <[email protected]> | 2011-05-18 09:30:28 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2011-05-18 09:30:28 -0500 |
| commit | 3f5c6d75c9f0bb6a8d8fbb25c556ad594db8bd24 (patch) | |
| tree | b8baa34abaada35d10329b6700bbd520845b55cb /haskell-init.el | |
| parent | abc8b2a3525f4c8c637fbd4329c2b2f4e910dc41 (diff) | |
Split off programming language-specific custimizations to separate init files.
Diffstat (limited to 'haskell-init.el')
| -rw-r--r-- | haskell-init.el | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/haskell-init.el b/haskell-init.el new file mode 100644 index 0000000..59fed97 --- /dev/null +++ b/haskell-init.el @@ -0,0 +1,27 @@ +;; ~/.emacs.d/haskell-init.el +;; Luke Hoersten <[email protected]> + +;; scion +(if (file-exists-p "~/.cabal/share/scion-0.1.0.10/emacs") + (progn + (add-to-list 'load-path "~/.cabal/share/scion-0.1.0.10/emacs") + (require 'scion) + (setq scion-program "~/.cabal/bin/scion-server") + (add-hook + 'haskell-mode-hook + (lambda () + (scion-mode 1) + (scion-flycheck-on-save 1) + (setq scion-completing-read-function 'ido-completing-read))))) + +(add-hook + 'haskell-mode-hook + (lambda () + (haskell-indentation-mode nil) + (haskell-indent-mode t) + (capitalized-words-mode t) + (haskell-doc-mode t) + (setq + haskell-indent-offset 4 + whitespace-line-column 78)) + t) ; append instead of prepend else haskell-mode overwrites these settings |
