From c63bfea86531ac2603c58e3d4001db126521294a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Fri, 6 Oct 2023 16:05:55 +0100 Subject: [PATCH] my-matrix: initial config with ement --- init.el | 2 +- my-matrix.el | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 my-matrix.el diff --git a/init.el b/init.el index 7bb7372..902cfba 100644 --- a/init.el +++ b/init.el @@ -131,7 +131,7 @@ (use-package my-circe :if (not I-am-root)) -(use-package my-telegram +(use-package my-matrix :if I-am-at-work) (use-package my-diff) diff --git a/my-matrix.el b/my-matrix.el new file mode 100644 index 0000000..176b17e --- /dev/null +++ b/my-matrix.el @@ -0,0 +1,22 @@ +;;; my-matrix --- Matrix handling +;; +;;; Commentary: +;; +;; Currently using ement +;; +;;; Code: + +(use-package ement + :load-path (lambda () (my-return-path-if-ok + "~/src/emacs/ement.el.git")) + :custom + ;; :NOTE| Notifications ought to be limited to @mentions only! + (ement-notify-notification-predicates '(ement-notify--event-mentions-session-user-p + ement-notify--event-mentions-room-p)) + (ement-room-images t) + (ement-room-message-format-spec "%S>%L %B%r%R[%t]") + (ement-room-send-message-filter #'ement-room-send-org-filter) + (ement-save-sessions t)) + +(provide 'my-matrix) +;;; my-matrix.el ends here