Subject: Grep mode should also bind "q" to quit-window

From: [email-masked]
Date: Sat, 06 Jun 2009 04:01:50 +0800

Alas, one must do
(setq
 grep-mode-hook
 (function
  (lambda ()
    (define-key grep-mode-map "q" 'quit-window))))
because it is not the default. Same with compilation-mode-map.