git: restore layout when exiting magit buffer

closes https://github.com/syl20bnr/spacemacs/issues/14951

Co-authored-by: Richard Kim <emacs18@gmail.com>
This commit is contained in:
Lucius Hu 2021-08-25 20:14:04 +00:00 committed by Maxi Wolff
parent f78c9bed18
commit a9ba3b8fe0

View file

@ -155,6 +155,7 @@
(defun git/init-magit ()
(use-package magit
:defer (spacemacs/defer)
:custom (magit-bury-buffer-function #'magit-restore-window-configuration)
:init
(progn
(push "magit: .*" spacemacs-useless-buffers-regexp)