tools/magit: clean up after magit more intelligently #506

Ensures magit buffers are cleaned up after magit-status is closed. Will
defer cleanup on process buffers, until the processes have finished.

Also fixes issue where quitting magit will leave leftover windows.
This commit is contained in:
Henrik Lissner 2018-04-08 20:44:35 -04:00
parent ee921f581d
commit 460461ef54
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 23 additions and 8 deletions

View file

@ -345,3 +345,6 @@ with `org-cycle')."
((org-in-src-block-p)
(org-babel-remove-result)
t)))))
;;;###autoload
(defalias #'+org/toggle-fold #'+org|toggle-only-current-fold)