From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fL4k0-0002Oy-UD for guix-patches@gnu.org; Tue, 22 May 2018 06:42:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fL4jz-0005vs-VB for guix-patches@gnu.org; Tue, 22 May 2018 06:42:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:35785) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fL4jz-0005vo-Rs for guix-patches@gnu.org; Tue, 22 May 2018 06:42:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fL4jz-0004vn-Gm for guix-patches@gnu.org; Tue, 22 May 2018 06:42:03 -0400 Subject: [bug#31500] [PATCH 01/20] gnu: Add emacs-esh-autosuggest. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fL4ja-00021z-1x for guix-patches@gnu.org; Tue, 22 May 2018 06:41:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fL4jY-0005PP-Vu for guix-patches@gnu.org; Tue, 22 May 2018 06:41:38 -0400 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:38159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fL4jY-0005O9-Qk for guix-patches@gnu.org; Tue, 22 May 2018 06:41:36 -0400 Received: by mail-wr0-x229.google.com with SMTP id 94-v6so19248203wrf.5 for ; Tue, 22 May 2018 03:41:36 -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.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 03:41:34 -0700 (PDT) From: Pierre Neidhardt Date: Tue, 22 May 2018 12:41:14 +0200 Message-Id: <20180522104133.26049-1-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: 31500@debbugs.gnu.org * gnu/packages/emacs.scm (emacs-esh-autosuggest): New variable. --- gnu/packages/emacs.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 24ab1ba6f..db4ff5652 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -10489,3 +10489,32 @@ 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 git-fetch) + (uri (git-reference + (url "https://github.com/dieggsy/esh-autosuggest") + (commit version))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "116pdjgpjy9b0psm5kzwkwy7dq8vn0p6dy75dl1zsy2xrjf1iqdw")))) + (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