Bad-ptr / persp-mode.el

named perspectives(set of buffers/window configs) for emacs
400 stars 44 forks source link

[feature-request] `list-buffers` for current perspective #80

Closed LucaMarconato closed 6 years ago

LucaMarconato commented 6 years ago

When I didn't know persp-mode I used to call list-buffers for killing all the buffers which I didn't need anymore, in a fast way. With persp-mode calling list-buffers shows all the opened buffers, so when I am using a lot of perspectives it is difficult to handle buffers. It would be useful to have the function persp-list-buffers. I think the implementation would be very fast.

Bad-ptr commented 6 years ago

See the https://github.com/Bad-ptr/persp-mode.el#universal

(defun persp-list-buffers (&optional arg)
  (interactive "P")
  (with-persp-buffer-list () (list-buffers arg)))
LucaMarconato commented 6 years ago

Oh it is very simple, thank you!