[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(add-hook 'compilaton-mode-hook 'view-mode-enter)
From: |
Dan Jacobson |
Subject: |
(add-hook 'compilaton-mode-hook 'view-mode-enter) |
Date: |
25 Dec 2001 10:50:56 +0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
Kevin> Does (add-hook 'compilaton-mode-hook 'view-mode-enter) do what you want?
Odd, on emacs -q, running this with "ESC :" doesn't cause it to be
invoked with the next M-x compile. [no "view" in modeline too]. OK, I
think I'll stick with
(add-hook 'compilation-mode-hook
(function
(lambda ()
(toggle-read-only 1)
(define-key compilation-mode-map "q" 'quit-window)
)))
--
http://www.geocities.com/jidanni/ Tel+886-4-25854780
Re: "Feelings": Me and emacs 21 for the 21st century, Kevin Rodgers, 2001/12/19
- (add-hook 'compilaton-mode-hook 'view-mode-enter),
Dan Jacobson <=