From ae8e24df46851ff7e597d5f0c233d75a8c850ece Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 23 Sep 2022 01:04:36 +0100 Subject: telega: proper external viewer for tty --- init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'init.el') diff --git a/init.el b/init.el index c753acd..101519c 100644 --- a/init.el +++ b/init.el @@ -2685,7 +2685,11 @@ (propertize "| " 'face 'jao-themes-dimm) telega-mode-line-string-format '(:eval (telega-mode-line-unread-unmuted)) - telega-use-images (display-graphic-p)) + telega-use-images (display-graphic-p) + telega-open-file-function + (if (display-graphic-p) #'find-file #'jao--see) + telega-open-message-as-file + (unless (display-graphic-p) '(photo video animation))) (with-eval-after-load "tracking" (jao-shorten-modes 'telega-chat-mode) (jao-tracking-faces 'telega-tracking)) -- cgit v1.2.3