From 66707baa84e10ec499bd912ee296907d04e783cd Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 27 Mar 2021 00:04:11 -0500 Subject: Incorporate idiomdrottning's magit display bit --- init.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 23d799c..7d0c2f7 100644 --- a/init.el +++ b/init.el @@ -372,7 +372,14 @@ ;;; Magit (acdw/pkg magit - :binds (("g" magit-status :map acdw/leader))) + :binds (("g" magit-status :map acdw/leader)) + :set `((magit-display-buffer-function + ,(defun magit-display-buffer-same-window (buffer) + "Display BUFFER in the selected window like God intended." + (display-buffer buffer + '(display-buffer-same-window)))) + (magit-popup-display-buffer-action + ((display-buffer-same-window))))) ;;; Web browsing -- cgit 1.4.1-21-gabe81