From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH] gnu: Add emacs-ag Date: Sun, 15 Jan 2017 22:13:45 +0300 Message-ID: <87ziisqgpi.fsf@gmail.com> References: <20170115112534.17568-1-mail@cbaines.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSqFS-0006qy-NE for guix-devel@gnu.org; Sun, 15 Jan 2017 14:13:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSqFN-0008Ql-Mn for guix-devel@gnu.org; Sun, 15 Jan 2017 14:13:50 -0500 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:35838) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cSqFN-0008Qc-FY for guix-devel@gnu.org; Sun, 15 Jan 2017 14:13:45 -0500 Received: by mail-lf0-x241.google.com with SMTP id v186so10415883lfa.2 for ; Sun, 15 Jan 2017 11:13:45 -0800 (PST) In-Reply-To: <20170115112534.17568-1-mail@cbaines.net> (Christopher Baines's message of "Sun, 15 Jan 2017 11:25:34 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Christopher Baines Cc: guix-devel@gnu.org Christopher Baines (2017-01-15 11:25 +0000) wrote: > * gnu/packages/emacs.scm (emacs-ag): New variable. > --- > gnu/packages/emacs.scm | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm > index 50cea7685..6933dcc35 100644 > --- a/gnu/packages/emacs.scm > +++ b/gnu/packages/emacs.scm > @@ -46,6 +46,7 @@ > #:use-module (guix build-system glib-or-gtk) > #:use-module (guix build-system trivial) > #:use-module (gnu packages) > + #:use-module (gnu packages code) > #:use-module (gnu packages guile) > #:use-module (gnu packages gtk) > #:use-module (gnu packages gnome) > @@ -1066,6 +1067,32 @@ like. It can be linked with various Emacs mail clients (Message and Mail > mode, Rmail, Gnus, MH-E, and VM). BBDB is fully customizable.") > (license license:gpl3+))) > > +(define-public emacs-ag > + (package > + (name "emacs-ag") > + (version "0.47") > + (source (origin > + (method url-fetch) > + (uri (string-append > + "https://github.com/Wilfred/ag.el/archive/" > + version ".tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1rlmp6wnyhqfg86dbz17r914msp58favn4kd4yrdwyia265a4lar")))) > + (build-system emacs-build-system) > + (propagated-inputs > + `(("the-silver-searcher" ,the-silver-searcher) Is it propagated just because "ag" executable is needed? If so, then it's better to keep it in 'inputs' and to change the value of 'ag-executable' variable (in "ag.el") using 'emacs-substitute-variables'. See 'emacs-slime', 'emacs-w3m', etc. for examples. > + ("dash" ,emacs-dash) > + ("s" ,emacs-s))) > + (home-page "https://github.com/Wilfred/ag.el") > + (synopsis "Front-end for ag (the-silver-searcher) for Emacs") > + (description "This package provides the ability to use the silver > +searcher, also called @code{ag}. Features include version control system > +awareness, use of Perl compatible regular expressions, editing the search > +results directly and searching file names rather than the contents of files.") > + (license license:gpl3+))) > + > (define-public emacs-async > (package > (name "emacs-async") -- Alex