From 8c16b101416bf2717c95ba0b26ab518d4faff00f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= Date: Fri, 12 Mar 2010 16:36:35 +0100 Subject: [PATCH] Use view-mode for the *magit-process* buffer Now, q will bury the buffer, and several other keybindig will be available --- magit.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/magit.el b/magit.el index cb9d38f1..8f1bb4ad 100644 --- a/magit.el +++ b/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)