Commit 99b19b9d authored by Duncan Bayne's avatar Duncan Bayne

Add util for killing all Silver Searcher buffers

parent 634d2954
......@@ -65,6 +65,15 @@
(kill-buffer buf)))
(buffer-list)))
(defun utils/kill-ag-buffers ()
"Kill all Silver Searcher buffers."
(interactive)
(mapcar
'(lambda (buf)
(if (string-match "^\*ag search text.*\*$" (buffer-name buf))
(kill-buffer buf)))
(buffer-list)))
(defun utils/kill-other-unmodified-buffers ()
"Kill any unmodified buffers that are inspecting files, except for the current buffer."
(interactive)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment