From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJkSL-00087A-UX 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 1fJkSK-0000sO-PJ for guix-patches@gnu.org; Fri, 18 May 2018 14:50:21 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60526) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJkSK-0000s9-Kv for guix-patches@gnu.org; Fri, 18 May 2018 14:50:20 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fJkSK-0001VW-DY for guix-patches@gnu.org; Fri, 18 May 2018 14:50:20 -0400 Subject: [bug#31517] [PATCH 02/21] gnu: emacs-esh-autosuggest: New variable. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJkRY-0006gT-EY for guix-patches@gnu.org; Fri, 18 May 2018 14:49:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJkRX-00007Y-GC for guix-patches@gnu.org; Fri, 18 May 2018 14:49:32 -0400 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:38053) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJkRX-00006s-A7 for guix-patches@gnu.org; Fri, 18 May 2018 14:49:31 -0400 Received: by mail-wm0-x22c.google.com with SMTP id m129-v6so16827736wmb.3 for ; Fri, 18 May 2018 11:49:31 -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.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 11:49:29 -0700 (PDT) From: Pierre Neidhardt Date: Fri, 18 May 2018 20:49:08 +0200 Message-Id: <20180518184910.9987-19-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: 31517@debbugs.gnu.org * gnu/packages/emacs.scm (emacs-esh-autosuggest): New variable. --- gnu/packages/emacs.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 10bf4c355..b84c58e2e 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -10487,3 +10487,31 @@ daemons (services) for those getting tired of typing out @code{sudo service my_thing reload} all the time. It's offers a consistent UI over different init systems.") (license license:gpl3+))) + +(define-public emacs-esh-autosuggest + (package + (name "emacs-esh-autosuggest") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/dieggsy/esh-autosuggest/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "0swf054vpk2h6285jmibp2wpy1vg5mdlimgjyyzpgwpj6k5xwgdf")))) + (build-system emacs-build-system) + (propagated-inputs `(("emacs-company" ,emacs-company))) + (home-page "https://github.com/dieggsy/esh-autosuggest") + (synopsis "Fish-like autosuggestions in Eshell") + (description + "This package assumes you use something other than company for eshell +completion (e.g. @code{eshell-pcomplete}, @code{completion-at-point}, +@code{helm-esh-pcomplete}). @code{company-mode} is used solely as a mechanism +for history autosuggestions. + +Unless you're using @code{use-package}'s hook keyword, you can enable the +autosuggestions with: +@code{(add-hook 'eshell-mode-hook #'esh-autosuggest-mode)}") + (license license:gpl3+))) -- 2.17.0