Skip to content
Browse files

Merge pull request #72 from nonsequitur/idle-highlight-mode

Switch from idle-highlight to idle-highlight-mode.
  • Loading branch information...
2 parents 9da1a50 + 90251f3 commit f2a3699a7bb4a7e6e1cc43891bbdf1bf9d588eaa @technomancy committed May 19, 2011
Showing with 5 additions and 2 deletions.
  1. +4 −1 starter-kit-defuns.el
  2. +1 −1 starter-kit-elpa.el
View
5 starter-kit-defuns.el
@@ -92,6 +92,9 @@ Symbols matching the text at point are put first in the completion list."
(defun turn-off-tool-bar ()
(tool-bar-mode -1))
+(defun turn-on-idle-highlight ()
+ (idle-highlight-mode t))
+
(defun add-watchwords ()
(font-lock-add-keywords
nil '(("\\<\\(FIX\\|TODO\\|FIXME\\|HACK\\|REFACTOR\\):"
@@ -103,7 +106,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)
+(add-hook 'coding-hook 'turn-on-idle-highlight)
(defun run-coding-hook ()
"Enable things that are convenient across all coding buffers."
View
2 starter-kit-elpa.el
@@ -4,7 +4,7 @@
(require 'cl)
-(defvar starter-kit-packages (list 'idle-highlight
+(defvar starter-kit-packages (list 'idle-highlight-mode
'ruby-mode
'inf-ruby
'css-mode

5 comments on commit f2a3699

@jszakmeister

FYI: after this commit, Emacs would stop processing saying "idle-highlight-mode not found." I commented out idle-highlight-mode, and installed it via package interface, and then re-enabled. Perhaps there's a better way to cope with that problem when this list changes?

@Milhouse

Same here. Was trying to get started with the PeepCode Emacs movie, using Cocoa Emacs and hit the same problem. I deleted the 'idle-highlight mode in starter-kit-elpa.el. It complained, but compiled everything else.

@technomancy
Owner

I just tried this and couldn't repro. Does M-x package-refresh-contents fix the problem?

@jszakmeister

Dunno. I fixed my issue weeks ago, but thought I'd mention the problem. FWIW, I'm not sure it would have worked. The failure mode was pretty nasty. I don't remember being able to access any package stuff. I had to edit the file, and remove it from the list at first. Then I was able to use the package interface, and then, I was able to re-enable it, IIRC.

@Milhouse
Please sign in to comment.
Something went wrong with that request. Please try again.