diff options
-rw-r--r-- | init.el | 2 | ||||
-rw-r--r-- | lib/eos/jao-afio.el | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -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) |