From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJkSM-000889-Nc for guix-patches@gnu.org; Fri, 18 May 2018 14:50:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJkSL-0000sy-L8 for guix-patches@gnu.org; Fri, 18 May 2018 14:50:22 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60528) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJkSL-0000se-A0 for guix-patches@gnu.org; Fri, 18 May 2018 14:50:21 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fJkSL-0001Vk-37 for guix-patches@gnu.org; Fri, 18 May 2018 14:50:21 -0400 Subject: [bug#31518] [PATCH 10/21] gnu: emacs-google-translate: New variable. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJkRa-0006hf-5l for guix-patches@gnu.org; Fri, 18 May 2018 14:49:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJkRZ-00009i-8K for guix-patches@gnu.org; Fri, 18 May 2018 14:49:34 -0400 Received: from mail-wr0-x236.google.com ([2a00:1450:400c:c0c::236]:36353) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJkRZ-00008v-2X for guix-patches@gnu.org; Fri, 18 May 2018 14:49:33 -0400 Received: by mail-wr0-x236.google.com with SMTP id p4-v6so10173315wrh.3 for ; Fri, 18 May 2018 11:49:32 -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 q2-v6sm8369863wrj.57.2018.05.18.11.49.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 11:49:31 -0700 (PDT) From: Pierre Neidhardt Date: Fri, 18 May 2018 20:49:10 +0200 Message-Id: <20180518184910.9987-21-ambrevar@gmail.com> In-Reply-To: <20180518184910.9987-1-ambrevar@gmail.com> References: <20180518184910.9987-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: 31518@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 6fb11a0a3..ce5f9bdb8 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -10714,3 +10714,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