diff options
author | Kyle Meyer <kyle@kyleam.com> | 2013-12-29 00:23:50 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2013-12-29 00:23:50 -0500 |
commit | 39c799b5d95a7a35a438a944729b75fc2d65d9bd (patch) | |
tree | 65a0d93ae5ce39c9ac4fdc46b9b7467c8feade1a /init | |
parent | c72bc96314d8e9f28e11216515f2ed5cb8499395 (diff) | |
download | emacs.d-39c799b5d95a7a35a438a944729b75fc2d65d9bd.tar.gz |
Let magit restore windows
Use `magit-restore-window-configuration' instead of advice.
Diffstat (limited to 'init')
-rw-r--r-- | init/km-git.el | 6 |
1 files changed, 2 insertions, 4 deletions
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 () |