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:
parent
42c63c3a10
commit
8c16b10141
1 changed files with 6 additions and 0 deletions
6
magit.el
6
magit.el
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue