Permalink
Browse files

magit: auto-close commit window left behind

  • Loading branch information...
1 parent a453f27 commit e3bbafeb768b240d624177af5abb347123c5b9e9 @bradwright committed Aug 24, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 packages/init-magit.el
@@ -21,7 +21,13 @@
(defadvice magit-status (around magit-fullscreen activate)
(window-configuration-to-register :magit-fullscreen)
ad-do-it
- (delete-other-windows)))
+ (delete-other-windows))
+
+ ;; Close popup when commiting - this stops the commit window
+ ;; hanging around
+ ;; From: http://git.io/rPBE0Q
+ (defadvice git-commit-commit (after delete-window activate)
+ (delete-window)))
:config
(progn
;; restore previously hidden windows

0 comments on commit e3bbafe

Please sign in to comment.