From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOeq2-0004B8-FI for guix-patches@gnu.org; Fri, 01 Jun 2018 03:51:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOepz-0000Zn-CM for guix-patches@gnu.org; Fri, 01 Jun 2018 03:51:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48773) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fOepz-0000Zc-7U for guix-patches@gnu.org; Fri, 01 Jun 2018 03:51:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fOepy-0004cP-U5 for guix-patches@gnu.org; Fri, 01 Jun 2018 03:51:02 -0400 Subject: [bug#31519] [PATCH 08/21] gnu: Add emacs-fish-completion. References: <20180518184910.9987-20-ambrevar@gmail.com> In-Reply-To: <20180518184910.9987-20-ambrevar@gmail.com> Resent-Message-ID: From: Pierre Neidhardt Date: Fri, 1 Jun 2018 09:50:25 +0200 Message-Id: <20180601075025.28026-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 ba48cea78..303d0dcab 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -107,6 +107,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)) @@ -10741,3 +10742,37 @@ Org-mode. It features: @item agenda support. @end itemize\n") (license license:gpl3+)))) + +(define-public emacs-fish-completion + (package + (name "emacs-fish-completion") + (version "20180329") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/Ambrevar/emacs-fish-completion/archive/" + "3e3ed1f19fa778b7c35ad88e033dce5a6b1fc153" + ".tar.gz")) + (sha256 + (base32 + "16329py7fvid0bap1qhqxhdc68m9qqy1p8gc2bhng81zhm5a5zsm")))) + (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