diff options
author | jao <jao@gnu.org> | 2022-09-15 01:04:24 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-09-15 01:05:03 +0100 |
commit | 19ad403ae1157adb6a8f4bb63a6b43e185131d25 (patch) | |
tree | 19213d423f77524c3f551c61261bf414c0b55c60 | |
parent | eb51942061c05705858aa1740e9486bf8c13c127 (diff) | |
download | elibs-19ad403ae1157adb6a8f4bb63a6b43e185131d25.tar.gz elibs-19ad403ae1157adb6a8f4bb63a6b43e185131d25.tar.bz2 |
jao-afio-pop-to-buffer
-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) |