Last active
December 19, 2020 13:49
-
-
Save wandersoncferreira/f2a1fa285e49b054be0234aa677bae0d to your computer and use it in GitHub Desktop.
Open magit-diff-buffer using other-window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun bk/magit-display-diff-other-window (buffer) | |
"Display BUFFER in same-window but for magit-diff use other-window instead." | |
(display-buffer | |
buffer (if (with-current-buffer buffer (derived-mode-p 'magit-diff-mode)) | |
'(display-buffer-pop-up-window) | |
'(display-buffer-same-window)))) | |
(setq magit-display-buffer-function | |
#'bk/magit-display-diff-other-window) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment