mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -11,11 +11,11 @@
|
||||
#'magit-builtin-completing-read)
|
||||
magit-revision-show-gravatars '("^Author: " . "^Commit: "))
|
||||
|
||||
(add-hook 'magit-popup-mode-hook #'hide-mode-line-mode)
|
||||
(set! :popup "^\\(?:\\*magit\\|magit:\\)" :ignore)
|
||||
;; no mode-line in magit popups
|
||||
(add-hook 'magit-popup-mode-hook #'hide-mode-line-mode)
|
||||
;; Clean up after magit by properly killing buffers
|
||||
(setq magit-bury-buffer-function #'+magit/quit)
|
||||
(map! :map magit-mode-map [remap quit-window] #'+magit/quit))
|
||||
(map! :map magit-status-mode-map [remap magit-mode-bury-buffer] #'+magit/quit))
|
||||
|
||||
|
||||
(def-package! magit-blame
|
||||
|
Reference in New Issue
Block a user