diff options
| author | Constantine Vetoshev <gepardcv@gmail.com> | 2021-11-02 22:22:35 -0700 |
|---|---|---|
| committer | Constantine Vetoshev <gepardcv@gmail.com> | 2021-11-02 22:22:35 -0700 |
| commit | a18577cc185548b0da233359d4be3871bd35c4c4 (patch) | |
| tree | 02936699bf0c86cdbfc200b65a57ff1fc1284950 /perspective.el | |
| parent | 3e4efaba598bb01834bbc4fbeb3e1d7b48579624 (diff) | |
Add 'buffer category to persp-switch-to-buffer*.
Diffstat (limited to 'perspective.el')
| -rw-r--r-- | perspective.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perspective.el b/perspective.el index a15ff32..2a6a286 100644 --- a/perspective.el +++ b/perspective.el @@ -1435,7 +1435,10 @@ PERSP-SET-IDO-BUFFERS)." (if other (format " (default %s)" other) "")) - candidates + (lambda (string predicate action) + (if (eq 'metadata action) + '(metadata (category . buffer)) + (complete-with-action action candidates string predicate))) nil nil nil nil (buffer-name (persp-other-buffer))))))) (let ((buffer (window-normalize-buffer-to-switch-to buffer-or-name))) |
