From 19ad403ae1157adb6a8f4bb63a6b43e185131d25 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 15 Sep 2022 01:04:24 +0100 Subject: jao-afio-pop-to-buffer --- init.el | 2 +- lib/eos/jao-afio.el | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3