summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-10-16 18:36:30 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-10-16 18:36:30 -0400
commit222badd406028be1771055dc035ce090f1b90412 (patch)
tree0cd317ec9435fb6d73d04a7354e393f80dddb989
parent9627c30933eb9e0a4f69205c7042dec380d2eb83 (diff)
tidy up the *-hooks section of .emacs
-rw-r--r--.emacs26
1 files 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)))