branch: elpa/magit
commit 9d188ca77b59d102570f7ecb3a079907ea83d2b5
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-find-index-hook: Add magit-blob-mode
This makes it possible to use "q" to bury the buffer. Other
blob commands still need to properly support the index blob.
---
lisp/magit-files.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/magit-files.el b/lisp/magit-files.el
index 3db05e78569..9ae320db209 100644
--- a/lisp/magit-files.el
+++ b/lisp/magit-files.el
@@ -189,6 +189,7 @@ See also https://github.com/doomemacs/doomemacs/pull/6309."
;;; Find Index
(defvar magit-find-index-hook nil)
+(add-hook 'magit-find-index-hook #'magit-blob-mode)
(defun magit-find-file-index-noselect (file &optional revert)
"Read FILE from the index into a buffer and return the buffer.