From 6d4528ca05d946892e13cbc4657d0c379445b13d Mon Sep 17 00:00:00 2001 From: mousebot Date: Fri, 25 Mar 2022 17:39:19 +0100 Subject: call lingva-translate with optional variable-pitch arg --- lisp/mastodon-toot.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lisp/mastodon-toot.el') diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 07ab400..52b061c 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -289,9 +289,12 @@ Makes a POST request to the server." Uses `lingva.el'." (interactive) (if mastodon-tl--buffer-spec - (let* ((toot (mastodon-tl--property 'toot-json))) + (let ((toot (mastodon-tl--property 'toot-json))) (if toot - (lingva-translate nil (mastodon-tl--content toot)) + (lingva-translate nil + (mastodon-tl--content toot) + (when mastodon-tl--enable-proportional-fonts + t)) (message "No toot to translate?"))) (message "No mastodon buffer?"))) -- cgit v1.2.3