Fixed mode hooks to all be functions.
authorLuke Hoersten <Luke@Hoersten.org>
Wed, 10 Jul 2013 13:58:29 -0500
changeset 63 814f5588d0d4
parent 62 e1b944f16acb
child 64 5183b4466011
Fixed mode hooks to all be functions.
init.el
--- a/init.el	Fri Jul 05 13:47:47 2013 -0500
+++ b/init.el	Wed Jul 10 13:58:29 2013 -0500
@@ -57,7 +57,7 @@
 ;;;; Mode-Specific ;;;;
 
 ;;; text-mode
-(add-hook 'fundamental-mode-hook '(flyspell-mode t))      ; spellcheck text
+(add-hook 'fundamental-mode-hook 'flyspell-mode)      ; spellcheck text
 (add-hook 'fundamental-mode-hook 'turn-on-auto-fill)    ; autofill text
 
 ;;; ido-mode
@@ -139,7 +139,7 @@
 (global-set-key (kbd "C-c s") 'eshell) ; start shell
 (exec-path-from-shell-initialize)
 (eshell)
-(add-hook 'eshell-mode-hook '(setenv "TERM" "emacs"))
+(add-hook 'eshell-mode-hook (lambda () (setenv "TERM" "emacs")))
 
 ;;; uniquify
 (setq
@@ -173,7 +173,7 @@
    (rainbow-mode)))
 
 ;;; css-mode
-(add-hook 'css-mode-hook '(rainbow-mode t))
+(add-hook 'css-mode-hook 'rainbow-mode)
 
 ;;; coding-modes map
 (mapc
@@ -207,6 +207,7 @@
    (imenu-add-menubar-index)
    (local-set-key (kbd "C-c i") 'haskell-navigate-imports) ; go to imports. prefix to return
    (setq
+    ghc-ghc-options '("-isrc")
     haskell-font-lock-haddock t
     haskell-stylish-on-save t
     haskell-indent-offset 4