summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-chats.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2026-11-27 22:59:47 +0000
committerjao <jao@gnu.org>2026-11-27 22:59:47 +0000
commitbca51e1655d5a305745b7826cf5134f37f6a960a (patch)
tree47fa78d6fa69e004f412087722583b2efac1e95d /custom/jao-custom-chats.el
parent307f2adf232ab89325549346aadab69ed1702b8d (diff)
downloadelibs-bca51e1655d5a305745b7826cf5134f37f6a960a.tar.gz
elibs-bca51e1655d5a305745b7826cf5134f37f6a960a.tar.bz2
afio refactorings
Diffstat (limited to 'custom/jao-custom-chats.el')
-rw-r--r--custom/jao-custom-chats.el16
1 files changed, 14 insertions, 2 deletions
diff --git a/custom/jao-custom-chats.el b/custom/jao-custom-chats.el
index d110a24..57af82f 100644
--- a/custom/jao-custom-chats.el
+++ b/custom/jao-custom-chats.el
@@ -125,8 +125,8 @@
(when (and (fboundp 'ement-connect) (or p (y-or-n-p "Connect to matrix? ")))
(unless (get-buffer "*Ement Rooms*")
(jao-with-auth "matrix.org" u p (ement-connect :user-id u :password p))))
- ;; (when (and (fboundp 'mastodon) (or p (y-or-n-p "Connect to mastodon? ")))
- ;; (mastodon))
+ (when (and (fboundp 'mastodon) (or p (y-or-n-p "Connect to mastodon? ")))
+ (mastodon))
(dolist (c '(("Libera Chat" . "irc.libera.chat:6697")))
(unless (get-buffer (cdr c))
(when (or p (y-or-n-p (format "Connect to %s? " (car c))))
@@ -139,6 +139,18 @@
(delete-other-windows))
(jao-chats t))
+(defun jao-chats-open-afio ()
+ (jao-afio-trisect)
+ (when (y-or-n-p "telegram? ")
+ (telega)
+ (other-buffer))
+ (when (y-or-n-p "mastodon? ")
+ (mastodon)
+ (other-buffer))
+ (when (y-or-n-p "irc? ") (circe "Libera Chat")))
+
+(setq jao-afio-open-chats #'jao-chats-open-afio)
+
(defun jao-chats-telega ()
(interactive)
(jao-buffer-same-mode '(telega-root-mode telega-chat-mode)))