From 7224ec283b87fd4cdf7e7e9432606b86c426443b Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 26 May 2021 00:49:51 -0400 Subject: [PATCH] Don't try to restore window configuration when exiting magit buffers --- .emacs.d/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index c71f669..4bde264 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -511,7 +511,9 @@ '(lambda (buffer) (display-buffer buffer '(display-buffer-same-window)))) (default-directory directory)) - (magit-status)))) + (magit-status))) + :config + (setq magit-bury-buffer-function 'magit-mode-quit-window)) (use-package popwin :ensure :disabled