unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Brit Butler via Guix-patches via <guix-patches@gnu.org>
To: 45757@debbugs.gnu.org
Subject: [bug#45757] [PATCH] Add emacs-consult.
Date: Sun, 10 Jan 2021 15:03:46 GMT	[thread overview]
Message-ID: <87im84n8ah.fsf@kingcons.io> (raw)
In-Reply-To: <87ft39l8l9.fsf@kingcons.io>

[-- Attachment #1: Type: text/plain, Size: 202 bytes --]

Good Morning,

I realized I made an error in the license field of my patch last night
transferring it from a solo file into guix/.../emacs-xyz.scm. Apologies!

Corrected patch is below.

Regards,
Brit


[-- Attachment #2: Corrected emacs-consult patch --]
[-- Type: text/plain, Size: 2278 bytes --]

From cc84e0fbf9fd80e0478bd206f19ffe2862dfc6ce Mon Sep 17 00:00:00 2001
From: Brit Butler <brit@kingcons.io>
Date: Sat, 9 Jan 2021 23:18:04 -0500
Subject: [PATCH] gnu: Add emacs-consult.

* gnu/packages/emacs-xyz.scm (emacs-consult): New variable.
---
 gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c86452fe2b..64b4642251 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -89,6 +89,7 @@
 ;;; Copyright © 2020 André A. Gomes <andremegafone@gmail.com>
 ;;; Copyright © 2020 Jonathan Rostran <rostranjj@gmail.com>
 ;;; Copyright © 2020 Noah Evans <noah@nevans.me>
+;;; Copyright © 2020 Brit Butler <brit@kingcons.io>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -6983,6 +6984,33 @@ any one of several ways: literally, as a regexp, as an initialism, in the flex
 style, or as multiple word prefixes.")
     (license license:gpl3+)))
 
+(define-public emacs-consult
+  ;; There are no tagged releases upstream on GitHub, instead we are using the
+  ;; most recent commit.
+  (let ((commit "ef6bb73a4a46e686826968fa25169e2d59b9a087")
+        (revision "0"))
+    (package
+      (name "emacs-consult")
+      (version (git-version "0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/minad/consult")
+               (commit commit)))
+         (sha256
+          (base32 "00cnwg2knd820wwx6zg71rr0whpdhqm64gm3qx1mgklk79g7daih"))
+         (file-name (git-file-name name version))))
+      (build-system emacs-build-system)
+      (propagated-inputs `(("emacs-flycheck" ,emacs-flycheck)
+                           ("emacs-selectrum" ,emacs-selectrum)))
+      (home-page "https://github.com/minad/consult")
+      (synopsis "Consulting completing-read")
+      (description "This package provides various handy commands based on the
+Emacs completion function completing-read, which allows to quickly select from a
+list of candidates.")
+      (license license:gpl3+))))
+
 (define-public emacs-smartparens
   (package
     (name "emacs-smartparens")
-- 
2.30.0


  reply	other threads:[~2021-01-10 15:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-10  4:27 [bug#45757] [PATCH] gnu: Add emacs-consult Brit Butler via Guix-patches via
2021-01-10 15:03 ` Brit Butler via Guix-patches via [this message]
2021-01-11 20:28 ` bug#45757: [PATCH] " Leo Prikler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87im84n8ah.fsf@kingcons.io \
    --to=guix-patches@gnu.org \
    --cc=45757@debbugs.gnu.org \
    --cc=brit@kingcons.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).