From 6c46fdf743f7bdbe88c0c1a6b8999d30b39cc8cc Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Wed, 10 Jul 2013 13:58:29 -0500 Subject: Fixed mode hooks to all be functions. --- init.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index d15387e..4bf2178 100644 --- a/init.el +++ b/init.el @@ -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 -- cgit v1.2.3