From f9f4e70278e2052900c70965dcf9099087565a1a Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 12 Sep 2022 21:09:06 +0100 Subject: the matrix has you --- init.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 087770a..901b884 100644 --- a/init.el +++ b/init.el @@ -2904,6 +2904,22 @@ (pop-to-buffer telega-root-buffer-name) (telega))) +;;;; ement +(use-package ement + :ensure t + :init (setq ement-save-sessions t) + + :config + (defun jao-ement-track (event room session) + (when (run-hook-with-args-until-success + 'ement-notify-notification-predicates event room session) + (when-let ((n (ement-room--buffer-name room)) + (b (get-buffer n))) + (tracking-add-buffer b)))) + + (add-hook 'ement-event-hook #'jao-ement-track) + (jao-shorten-modes 'ement-room-mode)) + ;;;; startup (defun jao-chats (&optional p) (interactive "P") -- cgit v1.2.3