Ement: save sessions

Add custom function to speedup connecting to matrix via pantalaimon
This commit is contained in:
Evie Litherland-Smith 2023-11-16 12:00:15 +00:00
parent 58edd2e151
commit 10744ecb2d
2 changed files with 18 additions and 0 deletions

View file

@ -667,9 +667,18 @@
(use-package mastodon (use-package mastodon
:commands mastodon) :commands mastodon)
(setq ement-save-sessions t)
(use-package ement (use-package ement
:commands ement-connect) :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) (when (require 'emms-setup nil :noerror)
(setq emms-player-list '(emms-player-mpv) (setq emms-player-list '(emms-player-mpv)
emms-info-functions '(emms-info-native) emms-info-functions '(emms-info-native)

View file

@ -783,8 +783,17 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
*** Matrix / Ement.el *** Matrix / Ement.el
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq ement-save-sessions t)
(use-package ement (use-package ement
:commands ement-connect) :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 #+end_src