From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIYX7-0006aw-HV for guix-patches@gnu.org; Sat, 25 Nov 2017 06:22:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIYX4-0002wg-5y for guix-patches@gnu.org; Sat, 25 Nov 2017 06:22:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eIYX4-0002wX-1j for guix-patches@gnu.org; Sat, 25 Nov 2017 06:22:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eIYX3-0005mr-Nd for guix-patches@gnu.org; Sat, 25 Nov 2017 06:22:01 -0500 Subject: [bug#29435] [PATCH] gnu: Add emacs-eless. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIYW0-0006Pr-AT for guix-patches@gnu.org; Sat, 25 Nov 2017 06:20:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIYVx-0002aN-5M for guix-patches@gnu.org; Sat, 25 Nov 2017 06:20:56 -0500 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:37331) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eIYVw-0002Zn-Ss for guix-patches@gnu.org; Sat, 25 Nov 2017 06:20:53 -0500 Received: by mail-lf0-x234.google.com with SMTP id y2so26937177lfj.4 for ; Sat, 25 Nov 2017 03:20:52 -0800 (PST) Received: from magnolia ([178.70.249.61]) by smtp.gmail.com with ESMTPSA id u19sm4094932lfc.89.2017.11.25.03.20.49 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Nov 2017 03:20:49 -0800 (PST) From: Oleg Pykhalov Date: Sat, 25 Nov 2017 14:20:48 +0300 Message-ID: <877eueeh9r.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-emacs-eless.patch Content-Transfer-Encoding: quoted-printable Content-Description: [PATCH] gnu: Add emacs-eless. 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: 29435@debbugs.gnu.org >From 41a44166cf336706e51b0e6ee98d013d861144ca Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sat, 25 Nov 2017 14:16:31 +0300 Subject: [PATCH] gnu: Add emacs-eless. * gnu/packages/emacs.scm (emacs-eless): New variable. --- gnu/packages/emacs.scm | 58 ++++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index f7a3ce5e6..63a83e40c 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -6293,3 +6293,61 @@ contexts. @item Toggle downloading and set priorities for individual files. @end itemize\n") (license license:gpl3+))) + +(define-public emacs-eless + (package + (name "emacs-eless") + (version "0.3") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/kaushalmodi/eless/archive/" + "v" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0gjnnhgw5xs1w3qfnkvwa2nv44gnxr8pkhx3c7qig45p8nh1461h")))) + (build-system trivial-build-system) + (inputs + `(("bash" ,bash))) + (native-inputs + `(("tar" ,tar) + ("gzip" ,gzip))) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (setenv "PATH" (string-append + (assoc-ref %build-inputs "tar") "/bin" ":" + (assoc-ref %build-inputs "gzip") "/bin")) + (system* "tar" "xvf" (assoc-ref %build-inputs "source")) + (chdir (string-append "eless" "-" ,version)) + (substitute* "eless" (("/usr/bin/env bash") + (string-append (assoc-ref %build-inputs "ba= sh") + "/bin/bash"))) + (install-file "eless" (string-append %output "/bin")) + (install-file "doc/eless.info" (string-append %output "/share/inf= o")) + #t))) + (home-page "https://github.com/kaushalmodi/eless") + (synopsis "Combination of Bash script and a Emacs view-mode") + (description "@code{eless} provides a combination of Bash script +and a minimal Emacs view-mode. + +Feautures: + +@itemize +@item Independent of a user=E2=80=99s Emacs config. +@item Customizable via the @code{(locate-user-emacs-file \"elesscfg\")} co= nfig. +@item Not require an Emacs server to be already running. +@item Syntax highlighting. +@item Org-mode file rendering. +@item @code{man} page viewer. +@item Info viewer. +@item Dired, wdired, (batch edit symbolic links). +@item Colored diffs, git diff, git log, ls with auto ANSI detection. +@item Filter log files lines matching a regexp. +@item Auto-revert log files similar to @code{tail -f}. +@item Quickly change frame and font sizes. +@end itemize\n") + (license license:expat))) --=20 2.15.0