aboutsummaryrefslogtreecommitdiff
path: root/modules/home-manager/emacs/config/lisp/jabber-bookmark-jump.el
diff options
context:
space:
mode:
authorDylan <boss@tehbox.org>2026-10-22 13:02:16 +1300
committerDylan <boss@tehbox.org>2026-10-22 17:19:36 +1300
commitcc47c443a3f86aa66d2719ee57c0e6e728ee655e (patch)
tree6e57c4e13cf07486d4a02a3652bf84a9889f97a6 /modules/home-manager/emacs/config/lisp/jabber-bookmark-jump.el
parent008b591a0a5942ae42f4c07a5abbee4dbd2d0743 (diff)
downloadnixos-configuration-dendritic.tar.gz
nixos-configuration-dendritic.zip
feat: Included the emacs configdendritic
Some packages are built with nix and some are still built with emacs
Diffstat (limited to 'modules/home-manager/emacs/config/lisp/jabber-bookmark-jump.el')
-rw-r--r--modules/home-manager/emacs/config/lisp/jabber-bookmark-jump.el27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/home-manager/emacs/config/lisp/jabber-bookmark-jump.el b/modules/home-manager/emacs/config/lisp/jabber-bookmark-jump.el
new file mode 100644
index 0000000..686ec47
--- /dev/null
+++ b/modules/home-manager/emacs/config/lisp/jabber-bookmark-jump.el
@@ -0,0 +1,27 @@
+;;; package --- jabber.el
+;;; commentary:
+;;; not really sure how i'm supposed to format this
+
+
+;;; CODE:
+
+(defun jabber-bookmark-jump (bookmark)
+ "Opens muc bookmark BOOKMARK."
+ (interactive (list (completing-read "Bookmark: "
+ (let ((acc (fsm-get-state-data (jabber-read-account)))
+ (names))
+ (dolist (elem
+ (gethash (plist-get acc :original-jid) jabber-bookmarks))
+ (setq names (cons (list (cdr (car (nth 1 elem)))) names)))
+ names))))
+ (let ((acc (fsm-get-state-data (jabber-read-account)))
+ (nick))
+ (dolist (elem
+ (gethash (plist-get acc :original-jid) jabber-bookmarks))
+ (if (equal (cdr (car (nth 1 elem))) bookmark)
+ (setq nick (nth 2 (nth 2 elem)))))
+ (jabber-muc-join (jabber-read-account) bookmark nick t)))
+
+(provide 'jabber-bookmark-jump)
+
+;;; jabber-bookmark-jump.el ends here