aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantine Vetoshev <gepardcv@gmail.com>2021-11-02 22:22:35 -0700
committerConstantine Vetoshev <gepardcv@gmail.com>2021-11-02 22:22:35 -0700
commita18577cc185548b0da233359d4be3871bd35c4c4 (patch)
tree02936699bf0c86cdbfc200b65a57ff1fc1284950
parent3e4efaba598bb01834bbc4fbeb3e1d7b48579624 (diff)
Add 'buffer category to persp-switch-to-buffer*.
-rw-r--r--perspective.el5
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)))