From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJkSN-000893-HG for guix-patches@gnu.org; Fri, 18 May 2018 14:50:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJkSM-0000tV-6j for guix-patches@gnu.org; Fri, 18 May 2018 14:50:23 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60530) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJkSM-0000tE-0v for guix-patches@gnu.org; Fri, 18 May 2018 14:50:22 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fJkSL-0001Vz-OT for guix-patches@gnu.org; Fri, 18 May 2018 14:50:21 -0400 Subject: [bug#31519] [PATCH 08/21] gnu: emacs-fish-completion: New variable. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJkRZ-0006hB-FJ 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 1fJkRY-00008r-FF for guix-patches@gnu.org; Fri, 18 May 2018 14:49:33 -0400 Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:33058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJkRY-00007n-8O for guix-patches@gnu.org; Fri, 18 May 2018 14:49:32 -0400 Received: by mail-wr0-x22f.google.com with SMTP id a15-v6so2876646wrm.0 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.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 11:49:30 -0700 (PDT) From: Pierre Neidhardt Date: Fri, 18 May 2018 20:49:09 +0200 Message-Id: <20180518184910.9987-20-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: 31519@debbugs.gnu.org * gnu/packages/emacs.scm (emacs-fish-completion): New variable. --- gnu/packages/emacs.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index d8e8f6a34..82f250f34 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -106,6 +106,7 @@ #:use-module (gnu packages fontutils) #:use-module (gnu packages password-utils) #:use-module (gnu packages xdisorg) + #:use-module (gnu packages shells) #:use-module (guix utils) #:use-module (srfi srfi-1) #:use-module (ice-9 match)) @@ -10649,3 +10650,37 @@ defaults.") - calendar (date selection) support - agenda support") (license license:gpl3+))) + +(define-public emacs-fish-completion + (package + (name "emacs-fish-completion") + (version "20180329.2137") + (source + (origin + (method url-fetch) + (uri (string-append + "https://melpa.org/packages/fish-completion-" + version + ".el")) + (sha256 + (base32 + "02fpxdvvpx6zdfmji6x61bsr4dw9x49wgxkla75i1yp1pqhmbjgp")))) + (build-system emacs-build-system) + (propagated-inputs `(("fish" ,fish))) + (home-page + "https://github.com/Ambrevar/emacs-fish-completion") + (synopsis + "Add fish completion to pcomplete (shell and Eshell)") + (description + "You can setup this package globally with: +@code{(when (and (executable-find \"fish\") + (require 'fish-completion nil t)) + (global-fish-completion-mode))} + +Alternatively, you can call the @code{fish-completion-mode} manually or in shell / +Eshell mode hook. + +The package @code{emacs-bash-completion} is an optional dependency: if available, +@code{fish-completion-complete} can be configured to fall back on bash to further +try completing. See @code{fish-completion-fallback-on-bash-p}.") + (license license:gpl3+))) -- 2.17.0