From 39c799b5d95a7a35a438a944729b75fc2d65d9bd Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 29 Dec 2013 00:23:50 -0500 Subject: Let magit restore windows Use `magit-restore-window-configuration' instead of advice. --- init/km-git.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'init') diff --git a/init/km-git.el b/init/km-git.el index d0f2e5b..0d427f0 100644 --- a/init/km-git.el +++ b/init/km-git.el @@ -14,12 +14,10 @@ ;; http://whattheemacsd.com/setup-magit.el-01.html (defadvice magit-status (around magit-fullscreen activate) - (window-configuration-to-register :magit-fullscreen) ad-do-it (delete-other-windows)) -(defadvice magit-mode-quit-window (around magit-restore-screen activate) - ad-do-it - (jump-to-register :magit-fullscreen)) + +(setq magit-restore-window-configuration t) ;; http://whattheemacsd.com/setup-magit.el-05.html (defun km/magit-just-amend () -- cgit v1.2.3