chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b8dc30f
)
el/dot-emacs.el: Override Magit's displaying of file buffers from diffs.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 2 May 2022 22:19:10 +0000
(23:19 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 2 May 2022 22:19:10 +0000
(23:19 +0100)
el/dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/el/dot-emacs.el
b/el/dot-emacs.el
index 12c3b21c7ab9cb27586e81fd1fb63a9aa7762d2f..d7b4800b81dc91ef6d3bc6449a1731bb330ab45f 100644
(file)
--- a/
el/dot-emacs.el
+++ b/
el/dot-emacs.el
@@
-5205,6
+5205,11
@@
(defun mdw-display-magit-buffer (buffer)
nil))))
(setq magit-display-buffer-function 'mdw-display-magit-buffer)
+(defun mdw-display-magit-file-buffer (buffer)
+ "Show a file buffer from a diff."
+ (select-window (display-buffer buffer)))
+(setq magit-display-file-buffer-function 'mdw-display-magit-file-buffer)
+
;;;--------------------------------------------------------------------------
;;; GUD, and especially GDB.