Use view-mode for the *magit-process* buffer

Now, q will bury the buffer, and several other keybindig will be
available
This commit is contained in:
Rémi Vanicat 2010-03-12 16:36:35 +01:00
parent 42c63c3a10
commit 8c16b10141

View file

@ -1069,6 +1069,12 @@ Many Magit faces inherit from this one by default."
(setq magit-process-client-buffer (current-buffer))
(save-excursion
(set-buffer buf)
(view-mode 1)
(set (make-local-variable 'view-no-disable-on-exit) t)
(setq view-exit-action
(lambda (buffer)
(with-current-buffer buffer
(bury-buffer))))
(setq buffer-read-only t)
(let ((inhibit-read-only t))
(setq default-directory dir)