From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fL4k5-0002Tc-AQ for guix-patches@gnu.org; Tue, 22 May 2018 06:42:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fL4k4-0005y7-8x for guix-patches@gnu.org; Tue, 22 May 2018 06:42:09 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:35793) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fL4k4-0005y2-5L for guix-patches@gnu.org; Tue, 22 May 2018 06:42:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fL4k3-0004ws-UT for guix-patches@gnu.org; Tue, 22 May 2018 06:42:07 -0400 Subject: [bug#31500] [PATCH 09/20] gnu: Add emacs-google-translate. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fL4jh-00028J-9Y for guix-patches@gnu.org; Tue, 22 May 2018 06:41:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fL4jg-0005aa-Hi for guix-patches@gnu.org; Tue, 22 May 2018 06:41:45 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:39468) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fL4jg-0005ZS-Bf for guix-patches@gnu.org; Tue, 22 May 2018 06:41:44 -0400 Received: by mail-wr0-x22c.google.com with SMTP id w18-v6so15504169wrn.6 for ; Tue, 22 May 2018 03:41:44 -0700 (PDT) Received: from mimimi.home (2a01cb040a37a0005adf9a0845f647b3.ipv6.abo.wanadoo.fr. [2a01:cb04:a37:a000:5adf:9a08:45f6:47b3]) by smtp.gmail.com with ESMTPSA id 67-v6sm22437230wmw.32.2018.05.22.03.41.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 03:41:42 -0700 (PDT) From: Pierre Neidhardt Date: Tue, 22 May 2018 12:41:22 +0200 Message-Id: <20180522104133.26049-9-ambrevar@gmail.com> In-Reply-To: <20180522104133.26049-1-ambrevar@gmail.com> References: <20180518184910.9987-1-ambrevar@gmail.com> <20180522104133.26049-1-ambrevar@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31500@debbugs.gnu.org * gnu/packages/emacs.scm (emacs-google-translate): New variable. --- gnu/packages/emacs.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index d546ee555..595be5bbf 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -10717,3 +10717,40 @@ A screenshot is taken for every user action. Call @code{gif-screencast-stop} ( by default) to finish recording and create the GIF result.") (license license:gpl3+))) + +(define-public emacs-google-translate + (package + (name "emacs-google-translate") + (version "20170713.119") + (source + (origin + (method url-fetch) + (uri (string-append + "https://melpa.org/packages/google-translate-" + version + ".tar")) + (sha256 + (base32 + "19v9xajksn0idq31jy3spcgajvqpab73bs2gcfgri2q882l0xyg0")))) + (build-system emacs-build-system) + (home-page "https://github.com/atykhonov/google-translate") + (synopsis "Emacs interface to Google Translate") + (description + "Setup: +@code{ +(require 'google-translate) +(require 'google-translate-default-ui) +(global-set-key \"\\C-ct\" 'google-translate-at-point) +(global-set-key \"\\C-cT\" 'google-translate-query-translate)} + +or + +@code{(require 'google-translate) +(require 'google-translate-smooth-ui) +(global-set-key \"\\C-ct\" 'google-translate-smooth-translate)} + +The difference between these configurations is in UI which will be used: +Default UI or Smooth UI. Please read the source of +@code{google-translate-default-ui.el} and @code{google-translate-smooth-ui.el} +for more details.") + (license license:gpl3+))) -- 2.17.0