blob: 888c3cd81c636ff340c30634ba060052b90cfd64 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
;;; thanos-chat.el --- -*- lexical-binding: t; -*-
;; Copyright (C) 2023 Thanos Apollo
;; Author: Thanos Apollo <[email protected]>
;; Keywords:
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;;
;;; Code:
(defun ement-login ()
(interactive)
(ement-connect
:user-id "@thanos_apollon:matrix.org"
:password (password-store-get "matrix/thanos_apollon")
:uri-prefix "https://matrix-client.matrix.org"))
(define-key thanos/applications-map (kbd "M-e") 'ement-login)
;;; Code:
(require 'erc)
(setf erc-modules
'(sasl netsplit fill button match track completion readonly
networks ring autojoin noncommands irccontrols move-to-prompt stamp
menu list))
(defun erc-libera ()
"Login to liberachat with erc."
(interactive)
(erc-tls :server "irc.libera.chat" :port 6697
:nick "thanosapollo"
:user "thanosapollo"
:password (password-store-get "liberachat/thanos_apollo")))
(defun erc-mouse ()
"Login to liberachat with erc."
(interactive)
(erc-tls :server "irc.myanonamouse.net" :port 6697
:nick (password-store-get-field "myanonamouse.net/irc" "user")
:user (password-store-get-field "myanonamouse.net/irc" "user")
:password (password-store-get "myanonamouse.net/irc")))
(define-key thanos/applications-map (kbd "i") 'erc-libera)
(require 'telega)
(add-hook 'telega-root-mode-hook 'emojify-mode)
(add-hook 'telega-chat-mode-hook 'emojify-mode)
(provide 'thanos-chat)
;;; thanos-chat.el ends here
|