Subject: [PATCH v2] gnu: Add emacs-vertico.

From: Xinglu Chen <[email-masked]>
Date: Sat, 10 Apr 2021 15:25:03 +0200

* gnu/packages/emacs-xyz.scm (emacs-vertico): New variable.
---
Version 0.3 was just released.

 gnu/packages/emacs-xyz.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a71b1c4cf7..88c2fae447 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -27564,3 +27564,35 @@ and preferred services can easily be configured.")
 quasi-prefix map, with many useful bindings.  These bindings are
 shorter than usual, using mostly unprefixed keys.")
     (license license:gpl3+)))
+
+(define-public emacs-vertico
+  (package
+    (name "emacs-vertico")
+    (version "0.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/minad/vertico")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1r2p09y3ag14dqd46nyy1pa2j2cvn4gn9pji47mzmwydsm2f8hv1"))))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'install 'build-doc
+           (lambda _
+             (invoke "makeinfo" "vertico.texi"))))))
+    (native-inputs
+     `(("texinfo" ,texinfo)))
+    (home-page "https://github.com/minad/vertico")
+    (synopsis "Vertical interactive completion")
+    (description "This package provides a minimalistic vertical completion UI,
+which is based on Emacs' default completion system.  By reusing the default
+system, Vertico achieves full compatibility with built-in Emacs commands and
+completion tables.  Vertico is pretty bare-bone and only provides a minimal
+set of commands.  Additional optional enhancements can be provided externally
+by complementary packages.")
+    (license license:gpl3+)))

base-commit: f91e1046c4050c0947429b9141c80024c261d7b5
-- 
2.31.1