mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
From eshell, open magit buffers in same window
This commit is contained in:
@ -11,6 +11,9 @@
|
|||||||
(let ((buffer-mode (buffer-local-value 'major-mode buffer)))
|
(let ((buffer-mode (buffer-local-value 'major-mode buffer)))
|
||||||
(display-buffer
|
(display-buffer
|
||||||
buffer (cond
|
buffer (cond
|
||||||
|
;; If opened from an eshell window, use the same window.
|
||||||
|
((derived-mode-p 'eshell-mode)
|
||||||
|
'(display-buffer-same-window))
|
||||||
;; If opened from a magit window from a popup, open the results
|
;; If opened from a magit window from a popup, open the results
|
||||||
;; full screen. We want to see it all.
|
;; full screen. We want to see it all.
|
||||||
((eq (window-dedicated-p) 'side)
|
((eq (window-dedicated-p) 'side)
|
||||||
|
Reference in New Issue
Block a user