Permalink
Browse files

Move idle-highlight activation to coding-hook.

  • Loading branch information...
1 parent 6b38e16 commit 1a6e4d1436683bc9085bd517e60637c12016f2dd @technomancy committed May 6, 2010
Showing with 5 additions and 8 deletions.
  1. +1 −0 starter-kit-defuns.el
  2. +1 −2 starter-kit-js.el
  3. +3 −5 starter-kit-lisp.el
  4. +0 −1 starter-kit-ruby.el
@@ -103,6 +103,7 @@ Symbols matching the text at point are put first in the completion list."
(add-hook 'coding-hook 'turn-on-save-place-mode)
(add-hook 'coding-hook 'pretty-lambdas)
(add-hook 'coding-hook 'add-watchwords)
+(add-hook 'coding-hook 'idle-highlight)
(defun run-coding-hook ()
"Enable things that are convenient across all coding buffers."
View
@@ -8,7 +8,6 @@
(add-hook 'espresso-mode-hook 'moz-minor-mode)
(add-hook 'espresso-mode-hook 'esk-paredit-nonlisp)
(add-hook 'espresso-mode-hook 'run-coding-hook)
-(add-hook 'espresso-mode-hook 'idle-highlight)
(setq espresso-indent-level 2)
;; If you prefer js2-mode, use this instead:
@@ -26,4 +25,4 @@
nil)))))))
(provide 'starter-kit-js)
-;;; starter-kit-js.el ends here
+;;; starter-kit-js.el ends here
View
@@ -52,11 +52,9 @@
(intern (concat (symbol-name x) "-mode"))
'(("(\\|)" . 'esk-paren-face))))
(add-hook
- (intern (concat (symbol-name x) "-mode-hook"))
- (lambda ()
- (paredit-mode +1)
- (idle-highlight +1)
- (run-coding-hook))))
+ (intern (concat (symbol-name x) "-mode-hook")) 'turn-on-paredit)
+ (add-hook
+ (intern (concat (symbol-name x) "-mode-hook")) 'run-coding-hook))
(provide 'starter-kit-lisp)
;; starter-kit-lisp.el ends here
View
@@ -57,7 +57,6 @@ exec-to-string command, but it works and seems fast"
(ad-activate 'ruby-do-run-w/compilation)))
(add-hook 'ruby-mode-hook 'run-coding-hook)
-(add-hook 'ruby-mode-hook 'idle-highlight)
;;; Flymake

0 comments on commit 1a6e4d1

Please sign in to comment.