feat: telega!

This commit is contained in:
Flinner 2022-03-05 20:27:33 +03:00
parent d8116f9c11
commit c799237a28
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
1 changed files with 30 additions and 3 deletions

View File

@ -384,16 +384,24 @@ Capture
**** Open (o) **** Open (o)
#+begin_src emacs-lisp #+begin_src emacs-lisp
"o" '(:ignore t :which-key "Open") "o" '(:ignore t :which-key "Open")
"oT" '(vterm :which-key "Vterm in current window") "oT" '(vterm :which-key "Vterm in current window")
"ot" '(vterm-other-window :which-key "Vterm in other window") ;"ot" '(vterm-other-window :which-key "Vterm in other window")
"ob" '(bookmark-jump :which-key "Bookmark Jump") "ob" '(bookmark-jump :which-key "Bookmark Jump")
"oB" '(bookmark-set :which-key "Bookmark set") "oB" '(bookmark-set :which-key "Bookmark set")
"om" '(mu4e :which-key "mu4e") "om" '(mu4e :which-key "mu4e")
"ot" '(telega :which-key "Telega")
"oe" '(elfeed-dashboard :which-key "Bookmark set") "oe" '(elfeed-dashboard :which-key "Bookmark set")
#+end_src #+end_src
**** Insert (i)
#+begin_src emacs-lisp
"i" '(:ignore t :which-key "Insert")
"ie" '(emoji-insert :which-key "Emoji")
#+end_src
**** Buffers (b) **** Buffers (b)
#+begin_src emacs-lisp #+begin_src emacs-lisp
"b" '(:ignore t :which-key "buffers") "b" '(:ignore t :which-key "buffers")
@ -2114,6 +2122,25 @@ or don't include in git source :)
(load "~/Documents/passwords/mu4e-context.el")) (load "~/Documents/passwords/mu4e-context.el"))
#+end_src #+end_src
* Telega
#+begin_src emacs-lisp
(use-package telega
:defer t
:init
(defun my/telega/olivetti () (setq-local olivetti-body-width 80))
(defun my/telega/company-backends ()
(setq-local company-backends
(append '(telega-company-username telega-company-botcmd )
company-backends)))
:hook (telega-chat-mode . olivetti-mode)
(telega-chat-mode . my/telega/olivetti)
(telega-chat-mode . my/telega/company-backends)
;; installed telegram-tdlib from AUR
:custom (telega-server-libs-prefix "/usr")
(telega-chat-bidi-display-reordering 'right-to-left))
#+end_src
* Buffers and Windows * Buffers and Windows
** COMMENT Workspaces (Persepective ** COMMENT Workspaces (Persepective
#+begin_src emacs-lisp #+begin_src emacs-lisp