haskell-init.el
author Luke Hoersten <Luke@Hoersten.org>
Mon, 03 Oct 2011 09:55:09 -0500
changeset 44 6e66ab8d9185
parent 41 14679e8ab2ae
child 45 12715da9a300
permissions -rw-r--r--
Split out some init files.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
44
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
     5
;; (if (file-exists-p "~/.cabal/share/scion-0.1.0.10/emacs")
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
     6
;;     (progn
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
     7
;;       (add-to-list 'load-path "~/.cabal/share/scion-0.1.0.10/emacs")
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
     8
;;       (require 'scion)
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
     9
;;       (setq scion-program "~/.cabal/bin/scion-server")
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
    10
;;       (add-hook
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
    11
;;        'haskell-mode-hook
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
    12
;;        (lambda ()
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
    13
;;          (scion-mode 1)
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
    14
;;          (scion-flycheck-on-save 1)
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
    15
;;          (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
    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
44
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
    25
    haskell-program-name "/opt/ghc7/bin/ghci"
40
886afd628fa2 Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    26
    haskell-indent-offset 4
886afd628fa2 Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    27
    whitespace-line-column 78))
886afd628fa2 Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    28
 t) ; append instead of prepend else haskell-mode overwrites these settings
44
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
    29
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
    30
(message "Loading haskell-init...done")
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
    31
(provide 'haskell-init)