madots: function to kill buffers
This commit is contained in:
parent
b276cb7c9b
commit
d283e0064e
@ -854,6 +854,11 @@ Return nil if DIR is not in a hugo project at all."
|
|||||||
(if (string-match-p "magit: " (buffer-name buffer))
|
(if (string-match-p "magit: " (buffer-name buffer))
|
||||||
buffer))
|
buffer))
|
||||||
(buffer-list))))))
|
(buffer-list))))))
|
||||||
|
(defun madots--kill-all-magit-buffers ()
|
||||||
|
(mapcar (lambda (buffer)
|
||||||
|
(if (string-match-p "^magit" (buffer-name buffer))
|
||||||
|
(kill-buffer buffer)))
|
||||||
|
(buffer-list)))
|
||||||
(defun madots--cleanup ()
|
(defun madots--cleanup ()
|
||||||
"Remove modifications made for `madots' once all magit buffers are killed."
|
"Remove modifications made for `madots' once all magit buffers are killed."
|
||||||
(if (not (madots--magit-buffers-p))
|
(if (not (madots--magit-buffers-p))
|
||||||
|
Loading…
Reference in New Issue
Block a user