summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--init.el2
-rw-r--r--lib/eos/jao-afio.el6
2 files changed, 7 insertions, 1 deletions
diff --git a/init.el b/init.el
index c1429e5..403e1bf 100644
--- a/init.el
+++ b/init.el
@@ -2721,7 +2721,7 @@
(defvar jao-chat-buffer-source
(list :name "chats"
:category 'buffer
- :action #'pop-to-buffer
+ :action (lambda (b) (jao-afio-pop-to-buffer 0 b))
:hidden t
:narrow (cons ?c "chats")
:items (jao-consult--mode-buffers 'erc-mode
diff --git a/lib/eos/jao-afio.el b/lib/eos/jao-afio.el
index 0ee5859..37bb507 100644
--- a/lib/eos/jao-afio.el
+++ b/lib/eos/jao-afio.el
@@ -244,6 +244,12 @@
((5) (jao-afio-goto-scratch t))
((0) (jao-afio-goto-scratch))))
+;;;###autoload
+(defun jao-afio-pop-to-buffer (n buff)
+ (interactive "NFrame number: \nBBuffer: ")
+ (jao-afio-goto-nth n)
+ (pop-to-buffer buff))
+
;;; setup
;;;###autoload
(defun jao-afio-setup (&optional use-frames)