From 10744ecb2d68104ee76f31bc051c336fdc7149c1 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 16 Nov 2023 12:00:15 +0000 Subject: [PATCH] Ement: save sessions Add custom function to speedup connecting to matrix via pantalaimon --- home/emacs/init.el | 9 +++++++++ home/emacs/init.org | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/home/emacs/init.el b/home/emacs/init.el index 3034700b..15a53475 100644 --- a/home/emacs/init.el +++ b/home/emacs/init.el @@ -667,9 +667,18 @@ (use-package mastodon :commands mastodon) +(setq ement-save-sessions t) + (use-package ement :commands ement-connect) +(defun my/ement-connect-pantalaimon () + "Connect to ement.el by calling `ement-connect' with pantalaimon service as uri-prefix" + (interactive) + (ement-connect + :user-id "@tux922:tchncs.de" + :uri-prefix "http://localhost:8008")) + (when (require 'emms-setup nil :noerror) (setq emms-player-list '(emms-player-mpv) emms-info-functions '(emms-info-native) diff --git a/home/emacs/init.org b/home/emacs/init.org index a8d95179..0b77d258 100644 --- a/home/emacs/init.org +++ b/home/emacs/init.org @@ -783,8 +783,17 @@ For reference information, see [[https://orgmode.com][Org-mode website]] *** Matrix / Ement.el #+begin_src emacs-lisp + (setq ement-save-sessions t) + (use-package ement :commands ement-connect) + + (defun my/ement-connect-pantalaimon () + "Connect to ement.el by calling `ement-connect' with pantalaimon service as uri-prefix" + (interactive) + (ement-connect + :user-id "@tux922:tchncs.de" + :uri-prefix "http://localhost:8008")) #+end_src