Rudy’s OBTF Rudolf Adamkovič

Home / Emacs / Telega


Configure!

Install the package.

We use the package from the stable MELPA to avoid manual re-compilation of the underlying Telegram Database Library (TDLib) as it evolves.

(with-eval-after-load 'package
  ;; (add-to-list 'package-pinned-packages '(telega . "melpa-stable"))
  (add-to-list 'package-selected-packages 'telega))

Use the Telegram Database Library installed via Homebrew.

(with-eval-after-load 'telega
  (setopt telega-server-libs-prefix "/opt/homebrew/"))

???

(with-eval-after-load 'telega
  (setopt telega-filters-custom nil)
  (setopt telega-mode-line-string-format
          '(" ℡" (:eval (telega-mode-line-unread-unmuted)) " "))
  (add-hook 'telega-ready-hook #'telega-mode-line-mode))
(keymap-global-set "C-c i" #'telega) ; "i" for instant messaging

Do not use confuse by using the Unicode triangles character as “Telegram logos”.

(with-eval-after-load 'telega
  (setopt telega-symbol-telegram ""
          telega-symbol-mode ""))

Send Org markup on RET and plain text on C-u RET.

(By default, RET sends plain text and C-u RET sends Markdown.)

(with-eval-after-load 'telega
  (setopt telega-chat-input-markups
          '("org" nil nil)))

Disable the avatars, as they are messed up because Emojis on macOS are taller than normal text.

(with-eval-after-load 'telega
  (setopt telega-chat-show-avatars nil))

Enable spell checking.

(with-eval-after-load 'telega
  (add-hook 'telega-chat-mode-hook #'jinx-mode))


© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.