From c799237a287d49a5685028a46b7c2ba342edcfa2 Mon Sep 17 00:00:00 2001 From: Flinner Date: Sat, 5 Mar 2022 20:27:33 +0300 Subject: [PATCH] feat: telega! --- emacs.mine/.config/emacs.mine/emacs.org | 33 ++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/emacs.mine/.config/emacs.mine/emacs.org b/emacs.mine/.config/emacs.mine/emacs.org index 43efef9..99b19a1 100644 --- a/emacs.mine/.config/emacs.mine/emacs.org +++ b/emacs.mine/.config/emacs.mine/emacs.org @@ -384,16 +384,24 @@ Capture **** Open (o) #+begin_src emacs-lisp "o" '(:ignore t :which-key "Open") - + "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-set :which-key "Bookmark set") + "om" '(mu4e :which-key "mu4e") - + "ot" '(telega :which-key "Telega") + "oe" '(elfeed-dashboard :which-key "Bookmark set") #+end_src +**** Insert (i) +#+begin_src emacs-lisp + "i" '(:ignore t :which-key "Insert") + "ie" '(emoji-insert :which-key "Emoji") +#+end_src + **** Buffers (b) #+begin_src emacs-lisp "b" '(:ignore t :which-key "buffers") @@ -2114,6 +2122,25 @@ or don't include in git source :) (load "~/Documents/passwords/mu4e-context.el")) #+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 ** COMMENT Workspaces (Persepective #+begin_src emacs-lisp