From 2d94d3f9de6a284efe4477315ec8be9a3cc1d872 Mon Sep 17 00:00:00 2001 From: jgart Date: Sun, 2 Nov 2025 15:05:33 -0600 Subject: [PATCH] gnu: Add emacs-claude-code. * gnu/packages/emacs-xyz.scm (emacs-claude-code): New variable. Fixes: guix/guix#4021 Change-Id: I2a6072bedf428b1ac606c3f2486e59057f526439 Modified-by: Cayetano Santos Signed-off-by: Cayetano Santos --- gnu/packages/emacs-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 9d35685ce94..2ddda65e277 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -16728,6 +16728,39 @@ circumstances, and leaves the keys untouched outside of those situations, allowing unprefixed keys to insert their respective characters as expected.") (license license:gpl3+)))) +(define-public emacs-claude-code + ;; There is no proper release/tag. + (let ((commit "becece683bcf60f7b150a87a30ef14885dcf8ce3") + (revision "0")) + (package + (name "emacs-claude-code") + (version (git-version "0.4.5" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/stevemolitor/claude-code.el") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0z77nxazkw08pmqam2z27a56s9nyp72a1vvc0ba3vgcwfkjx0v81")))) + (build-system emacs-build-system) + (arguments + (list + #:include #~(cons "^bin\\/" %default-include) + #:tests? #f)) ; There are no tests. + (propagated-inputs + (list emacs-transient + emacs-inheritenv)) + (home-page "https://github.com/stevemolitor/claude-code.el") + (synopsis "Claude Code Emacs integration") + (description + "This package provides convenient ways to interact with Claude from +within Emacs, including sending commands, toggling the Claude window, and +accessing slash commands.") + (license license:asl2.0)))) + (define-public emacs-claude-code-ide ;; Upstream does not make versioned releases. (let ((commit "c5e2de1a343bc6c0444789e0a99ad822cd56cfbe"))