emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/consult a2da0612cf 1/4: Add missing consult-buffer-othe


From: ELPA Syncer
Subject: [elpa] externals/consult a2da0612cf 1/4: Add missing consult-buffer-other-tab function (#875)
Date: Mon, 23 Oct 2023 12:57:49 -0400 (EDT)

branch: externals/consult
commit a2da0612cff0a88715e4b9e5ca3c30ae9d77fa03
Author: Illia Ostapyshyn <ilya.ostapyshyn@gmail.com>
Commit: GitHub <noreply@github.com>

    Add missing consult-buffer-other-tab function (#875)
---
 consult.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/consult.el b/consult.el
index 6b22c1c7f8..67977fe0b0 100644
--- a/consult.el
+++ b/consult.el
@@ -4696,6 +4696,13 @@ outside a project.  See `consult-buffer' for more 
details."
   (let ((consult--buffer-display #'switch-to-buffer-other-frame))
     (consult-buffer)))
 
+;;;###autoload
+(defun consult-buffer-other-tab ()
+  "Variant of `consult-buffer' which opens in other tab."
+  (interactive)
+  (let ((consult--buffer-display #'switch-to-buffer-other-tab))
+    (consult-buffer)))
+
 ;;;;; Command: consult-grep
 
 (defun consult--grep-format (async builder)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]