haskell-init.el
author Luke Hoersten <Luke@Hoersten.org>
Sun, 25 Mar 2012 20:03:12 -0500
changeset 51 c4e0668a2c87
parent 45 12715da9a300
child 53 0b3217376059
permissions -rw-r--r--
Updated zencoding mode.
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)
45
12715da9a300 Changes to reflect Ubuntu 11.10 upgrade.
Luke Hoersten <Luke@Hoersten.org>
parents: 44
diff changeset
    23
   (imenu-add-menubar-index)
40
886afd628fa2 Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    24
   (haskell-doc-mode t)
886afd628fa2 Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    25
   (setq
45
12715da9a300 Changes to reflect Ubuntu 11.10 upgrade.
Luke Hoersten <Luke@Hoersten.org>
parents: 44
diff changeset
    26
    haskell-program-name "ghci"
40
886afd628fa2 Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    27
    haskell-indent-offset 4
886afd628fa2 Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    28
    whitespace-line-column 78))
886afd628fa2 Split off programming language-specific custimizations to separate init files.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    29
 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
    30
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
    31
(message "Loading haskell-init...done")
6e66ab8d9185 Split out some init files.
Luke Hoersten <Luke@Hoersten.org>
parents: 41
diff changeset
    32
(provide 'haskell-init)