gnu: Add emacs-substitute.

* gnu/packages/emacs-xyz.scm (emacs-substitute): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Arnaud Lechevallier 2023-05-25 15:01:33 +02:00 committed by Nicolas Goaziou
parent 0e570b1726
commit 085bf9cd21
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -130,6 +130,7 @@
;;; Copyright © 2023 Gabriel Wicki <gabriel@erlikon.ch>
;;; Copyright © 2022-2023 Simon Josefsson <simon@josefsson.org>
;;; Copyright © 2023 Fabio Natali <me@fabionatali.com>
;;; Copyright © 2023 Arnaud Lechevallier <arnaud.lechevallier@free.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@ -9062,6 +9063,34 @@ (define-public emacs-mc-extras
comparing characters, removing cursors, and more.")
(license license:bsd-2))))
(define-public emacs-substitute
(let ((commit "b81bb7789847f3d1645a60422fa080c48b93dd47")) ;version bump
(package
(name "emacs-substitute")
(version "0.1.8")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://git.sr.ht/~protesilaos/substitute")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"0s1lgpwmdjz17rd4r6qp41agmpqwa9976v1pb55p648zjh0p2vlz"))))
(build-system emacs-build-system)
(home-page "https://git.sr.ht/~protesilaos/substitute")
(synopsis "Efficiently replace targets in the buffer or context")
(description
"Substitute is a set of commands that perform text replacement (i)
throughout the buffer, (ii) limited to the current definition (per
narrow-to-defun), (iii) from point to the end of the buffer, and (iv) from
point to the beginning of the buffer.
These substitutions are meant to be as quick as possible and, as such, differ
from the standard @code{query-replace} tool. The provided commands prompt for
substitute text and perform the substitution outright.")
(license license:gpl3+))))
(define-public emacs-typo
(package
(name "emacs-typo")