Skip to content

Commit

Permalink
killall-monky-buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
juszczakn committed Sep 1, 2016
1 parent 8a69f83 commit 7735734
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions monky.el
Expand Up @@ -25,6 +25,7 @@
;;; Code:

(require 'cl)
(require 'cl-lib)
(require 'bindat)

(defgroup monky nil
Expand Down Expand Up @@ -2944,6 +2945,15 @@ Brings up a buffer to allow editing of commit message."
(interactive "sBookmark name: ")
(monky-run-hg-async "bookmark" bookmark-name))

(defun killall-monky-buffers ()
(interactive)
(cl-flet ((monky-buffer-p (b) (string-match "\*monky\\(:\\|-\\).*" (buffer-name b))))
(let ((monky-buffers (cl-remove-if-not #'monky-buffer-p (buffer-list))))
(cl-loop for mb in monky-buffers
do
(kill-buffer mb)))))


(provide 'monky)

;; Local Variables:
Expand Down

0 comments on commit 7735734

Please sign in to comment.