From 4fadc502bf240346d4d3090f618332ec29aabc60 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 18 Jul 2024 15:55:50 +0800 Subject: [PATCH] fix: unable to translate in devdocs buffer --- lisp/init-dict.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/init-dict.el b/lisp/init-dict.el index 81b3cd43c..b8f176fee 100644 --- a/lisp/init-dict.el +++ b/lisp/init-dict.el @@ -50,6 +50,7 @@ ("C-c u" . gt-do-text-utility) ("C-c d g" . gt-do-translate) ("C-c d G" . gt-do-translate-prompt) + ("C-c d p" . gt-do-speak) ("C-c d s" . gt-do-setup) ("C-c d u" . gt-do-text-utility)) :init @@ -69,7 +70,7 @@ (setq gt-preset-translators `((default . ,(gt-translator :taker (list (gt-taker :pick nil :if 'selection) - (gt-taker :text 'paragraph :if '(Info-mode help-mode helpful-mode)) + (gt-taker :text 'paragraph :if '(Info-mode help-mode helpful-mode devdocs-mode)) (gt-taker :text 'buffer :pick 'fresh-word :if 'read-only) (gt-taker :text 'word)) :engines (if (display-graphic-p)