summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-09-15 01:04:24 +0100
committerjao <jao@gnu.org>2022-09-15 01:05:03 +0100
commit19ad403ae1157adb6a8f4bb63a6b43e185131d25 (patch)
tree19213d423f77524c3f551c61261bf414c0b55c60
parenteb51942061c05705858aa1740e9486bf8c13c127 (diff)
downloadelibs-19ad403ae1157adb6a8f4bb63a6b43e185131d25.tar.gz
elibs-19ad403ae1157adb6a8f4bb63a6b43e185131d25.tar.bz2
jao-afio-pop-to-buffer
-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)