.emacs-my
changeset 544 4095ef5f1346
parent 543 8ea7e3cb5127
child 545 24992bae7599
--- a/.emacs-my	Mon Jan 17 16:14:58 2011 +0200
+++ b/.emacs-my	Mon Jan 17 16:16:05 2011 +0200
@@ -306,8 +306,6 @@
 ;;; ----------------------------------------------------------------
 ;;; grep, find.
 
-;; (require 'grep)
-
 ;; This settings have effect from Emacs 22.x.
 (when (eq system-type 'windows-nt)
   ;; Workaround for Cygwin shell, when set 'CYGWIN=noglob'. By default 'shell-quote-argument'
@@ -323,12 +321,15 @@
 (setq grep-highlight-matches nil)
 (setq grep-use-null-device nil)
 
-(add-to-list 'grep-find-ignored-directories "build" t)
-(add-to-list 'grep-find-ignored-directories "dist" t)
-(add-to-list 'grep-find-ignored-directories "lib" t)
+(eval-after-load 'grep
+  (lambda nil
+    (add-to-list 'grep-find-ignored-directories "build" t)
+    (add-to-list 'grep-find-ignored-directories "dist" t)
+    (add-to-list 'grep-find-ignored-directories "lib" t)
 
-(add-to-list 'grep-find-ignored-files "*TAGS")
-(add-to-list 'grep-find-ignored-files "GPATH")
+    (add-to-list 'grep-find-ignored-files "*TAGS")
+    (add-to-list 'grep-find-ignored-files "GPATH")
+    ))
 
 (global-set-key [M-f7] 'rgrep)