From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOer0-0004vD-8j for guix-patches@gnu.org; Fri, 01 Jun 2018 03:52:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOeqx-0001Lk-4P for guix-patches@gnu.org; Fri, 01 Jun 2018 03:52:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48781) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fOeqx-0001LZ-0i for guix-patches@gnu.org; Fri, 01 Jun 2018 03:52:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fOeqw-0004eY-QH for guix-patches@gnu.org; Fri, 01 Jun 2018 03:52:02 -0400 Subject: [bug#31518] [PATCH 10/21] gnu: Add emacs-google-translate. References: <20180518184910.9987-21-ambrevar@gmail.com> In-Reply-To: <20180518184910.9987-21-ambrevar@gmail.com> Resent-Message-ID: From: Pierre Neidhardt Date: Fri, 1 Jun 2018 09:51:12 +0200 Message-Id: <20180601075112.28494-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 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 8484a31fe..577ef9f99 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -10805,3 +10805,41 @@ 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 + (let ((commit "d8b84a8359fcc697114d1298840e9a45b111c974")) + (package + (name "emacs-google-translate") + (version (git-version "0.11.14" "1" commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/atykhonov/google-translate") + (commit commit))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "1qs4hcg1i2m487z50nnwgs0sa2xj4lpgizbrvi2yda0mf3m75fgc")))) + (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