Skip to content

Commit

Permalink
Move idle-highlight activation to coding-hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed May 6, 2010
1 parent 6b38e16 commit 1a6e4d1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions starter-kit-defuns.el
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
3 changes: 1 addition & 2 deletions starter-kit-js.el
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -26,4 +25,4 @@
nil)))))))

(provide 'starter-kit-js)
;;; starter-kit-js.el ends here
;;; starter-kit-js.el ends here
8 changes: 3 additions & 5 deletions starter-kit-lisp.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion starter-kit-ruby.el
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1a6e4d1

Please sign in to comment.