Integrating the Matrix via ement
This commit is contained in:
parent
dcdd481713
commit
66c30a2252
1 changed files with 32 additions and 0 deletions
|
@ -93,6 +93,38 @@ I'm thinking the [[https://zevlg.github.io/telega.el/][Telega package]] would be
|
|||
(ha-leader "a T" 'telega))
|
||||
#+end_src
|
||||
For some reason, you need [[https://github.com/Fanael/rainbow-identifiers][rainbow-identifiers]] to work, oh, I guess the docs state this.
|
||||
* Matrix/Element
|
||||
Yet another encrypted chat/VoIP client-server, but unlike Signal and Telegram, [[matrix.org][Matrix]] is act ually open source. In other words, a project for nerds. We’ll be using Alphapapa’s latest [[https://github.c om/alphapapa/ement.el][ement]] project.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package ement
|
||||
:straight (:host github :repo "alphapapa/ement.el")
|
||||
:init
|
||||
(setq ement-save-sessions t
|
||||
ement-room-send-message-filter 'ement-room-send-org-filter)
|
||||
|
||||
:config
|
||||
(defun ha-ement-connect ()
|
||||
(interactive)
|
||||
(let* ((auth-results (auth-source-search :host "howardism-matrix"))
|
||||
(auth-first (first auth-results))
|
||||
(username (plist-get auth-first :user))
|
||||
(password (funcall (plist-get auth-first :secret))))
|
||||
(ement-connect :user-id username
|
||||
:password password
|
||||
:uri-prefix "https://howardism.org"))
|
||||
|
||||
(ha-leader
|
||||
"a x S" '("send" . ement-send-direct-message)
|
||||
"a x s" '("send" . ement-room-send-message)
|
||||
"a x c" '("compose" . ement-room-compose-message)
|
||||
"a x r" '("room" . ement-view-room)
|
||||
"a x d" '("discover" . mastodon-discover)))
|
||||
|
||||
(ha-leader
|
||||
"a x" '(:ignore t :which-key "matrix")
|
||||
"a x x" '("connect" . ha-ement-connect)
|
||||
"a x s" '("send" . ement-send-direct-message)))
|
||||
#+end_src
|
||||
|
||||
* RPG DM
|
||||
Been working on my [[https://gitlab.com/howardabrams/emacs-rpgdm][RPG DM project]] for getting Emacs helping as a /Dungeon Master's Assistant/. The idea is to be able to roll dice and whatnot. What I find most useful is the [[https://gitlab.com/howardabrams/emacs-rpgdm/-/blob/main/rpgdm-tables.el][random tables]].
|
||||
|
|
Loading…
Reference in a new issue