MaDots: kill buffers (doesn't totally work but does help)
This commit is contained in:
parent
0ac1e0d7b4
commit
04722d635b
@ -814,6 +814,7 @@ Return nil if DIR is not in a hugo project at all."
|
||||
(if (not (madots--magit-buffers-p))
|
||||
(progn
|
||||
(setq magit-git-executable madots--old-magit-exe)
|
||||
(setq magit-bury-buffer-function madots--old-magit-bury-buf-func)
|
||||
(cancel-function-timers #'madots--cleanup))))
|
||||
(defun madots (&optional exe)
|
||||
"Magit but with custom EXE, default \"dots\"."
|
||||
@ -821,6 +822,8 @@ Return nil if DIR is not in a hugo project at all."
|
||||
(require 'magit)
|
||||
(setq madots--old-magit-exe magit-git-executable)
|
||||
(setq magit-git-executable (or exe "dots"))
|
||||
(setq madots--old-magit-bury-buf-func magit-bury-buffer-function)
|
||||
(setq magit-bury-buffer-function #'kill-buffer-and-window)
|
||||
(magit-status)
|
||||
(run-with-timer 5 3 #'madots--cleanup)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user