diff options
| author | Thibaut Meyer <thibaut.meyer@posteo.eu> | 2021-03-08 12:20:00 +0100 |
|---|---|---|
| committer | Thibaut Meyer <thibaut.meyer@posteo.eu> | 2021-03-08 12:20:00 +0100 |
| commit | 8169e9d6ffd20d50555d7fa2d8153a1334329c09 (patch) | |
| tree | 8769402322bee9ab43c5cd1caa6d7e1e06e48ed7 /perspective.el | |
| parent | 9605e533b6e15ded612430f67468b08e2e8209ea (diff) | |
added persp-list-buffers function
Diffstat (limited to 'perspective.el')
| -rw-r--r-- | perspective.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/perspective.el b/perspective.el index 177f1e2..8147a09 100644 --- a/perspective.el +++ b/perspective.el @@ -826,6 +826,12 @@ Prefers perspectives in the selected frame." (persp-switch (cdr other-persp))) (switch-to-buffer buffer))))) +(defun persp-list-buffers () + "Like the default C-x C-b, but filters for the current perspective's buffers." + (interactive) + (switch-to-buffer + (list-buffers-noselect nil (seq-filter 'buffer-live-p (persp-current-buffers))))) + (defun persp-remove-buffer (buffer) "Disassociate BUFFER with the current perspective. |
