From 222badd406028be1771055dc035ce090f1b90412 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 16 Oct 2011 18:36:30 -0400 Subject: tidy up the *-hooks section of .emacs --- .emacs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.emacs b/.emacs index 851d140..5826d35 100644 --- a/.emacs +++ b/.emacs @@ -142,22 +142,22 @@ browse-url-browser-function 'browse-url-generic) (add-hook 'lisp-mode-hook - (function - (lambda () - (make-local-variable 'indent-tabs-mode) - (setq indent-tabs-mode nill)) - )) + '(lambda () + (set (make-local-variable 'indent-tabs-mode) nil) + )) -(defun coffee-custom () - "coffee-mode-hook" - (set (make-local-variable 'tab-width) 2)) +(add-hook 'emacs-lisp-mode-hook + '(lambda () + (set (make-local-variable 'indent-tabs-mode) nil) + )) (add-hook 'coffee-mode-hook - '(lambda() (coffee-custom))) + '(lambda () + (set (make-local-variable 'tab-width) 2) + )) (add-hook 'term-mode-hook - (function - (lambda () + '(lambda () (setq term-prompt-regexp "^[^#$%>\n]*[#$%>] *") (make-local-variable 'mouse-yank-at-point) ;(make-local-variable 'transient-mark-mode) @@ -165,8 +165,8 @@ ;(setq transient-mark-mode nil) (auto-fill-mode -1) (setq tab-width 8 ) - (setq autopair-dont-activate t)) ;; Don't let autopair break ansi-term - )) + (setq autopair-dont-activate t) ;; Don't let autopair break ansi-term + )) ;(require 'flymake) ;(add-hook 'php-mode-hook (lambda() (flymake-mode 1))) -- cgit v1.1-4-g5e80