From: Lee Thompson <lee.p.thomp@gmail.com>
To: 74158@debbugs.gnu.org
Cc: Lee Thompson <lee.p.thomp@gmail.com>
Subject: [bug#74158] [PATCH 4/4] * gnu/packages/emacs-xyz.scm (emacs-parinfer-rust-mode): New variable.
Date: Fri, 1 Nov 2024 13:28:52 +0000 [thread overview]
Message-ID: <20241101132853.723629-4-lee.p.thomp@gmail.com> (raw)
In-Reply-To: <20241101132853.723629-1-lee.p.thomp@gmail.com>
Change-Id: I3508c5fd2d6c787ff9ef737e3f6a207d9b852ada
---
gnu/packages/emacs-xyz.scm | 45 ++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index e7a75d51a3..2527a568b2 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -290,6 +290,7 @@ (define-module (gnu packages emacs-xyz)
#:use-module (gnu packages virtualization)
#:use-module (gnu packages web-browsers)
#:use-module (gnu packages wget)
+ #:use-module (gnu packages text-editors)
#:use-module (guix utils)
#:use-module (srfi srfi-1)
#:use-module (ice-9 match))
@@ -27457,6 +27458,50 @@ (define-public emacs-track-changes
to react to them.")
(license license:gpl3+)))
+(define-public emacs-parinfer-rust-mode
+ (package
+ (name "emacs-parinfer-rust-mode")
+ (version "0.9.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/justinbarclay/parinfer-rust-mode")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1kbn54v100rh6pxl3lc66pspd3nfy7pkv8iyqkg09xqcwyblbf86"))))
+ (propagated-inputs (list emacs-track-changes))
+ (inputs (list parinfer-rust-emacs))
+ (build-system emacs-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'configure
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((parinfer (assoc-ref inputs "parinfer-rust-emacs")))
+ ;; Specify the absolute file names of the parinfer shared
+ ;; library.
+ (make-file-writable "parinfer-rust-mode.el")
+ (emacs-substitute-variables "parinfer-rust-mode.el"
+ ("parinfer-rust--lib-name"
+ "libparinfer_rust.so")
+ ("parinfer-rust-library-dir"
+ (string-append parinfer
+ "/lib/")))
+ (emacs-substitute-sexps "parinfer-rust-mode.el"
+ ("defcustom parinfer-rust-library-directory"
+ (string-append parinfer
+ "/lib/"))
+ ("defconst parinfer-rust--lib-name"
+ "libparinfer_rust.so"))))))))
+ (home-page "https://github.com/justinbarclay/parinfer-rust-mode")
+ (synopsis "Lisp structure editing mode leveraging parinfer-rust")
+ (description
+ "@code{parinfer-rust-mode} aims to be a simple implementation
+of Parinfer that leverages the parinfer-rust plugin to do most of the heavy
+lifting.")
+ (license license:gpl3+)))
+
(define-public emacs-helm-eww
(package
(name "emacs-helm-eww")
--
2.43.0
prev parent reply other threads:[~2024-11-01 15:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-01 11:13 [bug#74158] [PATCH 0/4] Add emacs-parinfer-rust-mode Lee Thompson
2024-11-01 13:28 ` [bug#74158] [PATCH 1/4] * gnu/packages/emacs-xyz.scm (emacs-track-changes): New variable Lee Thompson
2024-11-01 13:28 ` [bug#74158] [PATCH 2/4] * gnu/packages/crates-io.scm (rust-emacs-0.19): " Lee Thompson
2024-11-01 13:28 ` [bug#74158] [PATCH 3/4] * gnu/packages/text-editors.scm (parinfer-rust-emacs): " Lee Thompson
2024-11-01 13:28 ` Lee Thompson [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241101132853.723629-4-lee.p.thomp@gmail.com \
--to=lee.p.thomp@gmail.com \
--cc=74158@debbugs.gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.