From: Arun Isaac <arunisaac@systemreboot.net>
To: Arun Isaac <arunisaac@systemreboot.net>,
Ricardo Wurmus <rekado@elephly.net>,
kaagum@systemreboot.net
Subject: [PATCH 1/2] Allow setting environment variables with agent shell.
Date: Thu, 5 Nov 2026 00:19:55 +0000 [thread overview]
Message-ID: <20261105002005.22420-1-arunisaac@systemreboot.net> (raw)
In-Reply-To: <87se1grv11.fsf@systemreboot.net>
---
emacs/agent-shell-kaagum.el | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/emacs/agent-shell-kaagum.el b/emacs/agent-shell-kaagum.el
index 8e89cf5..748dd11 100644
--- a/emacs/agent-shell-kaagum.el
+++ b/emacs/agent-shell-kaagum.el
@@ -43,6 +43,22 @@
:type '(repeat string)
:group 'agent-shell)
+(defcustom agent-shell-kaagum-environment
+ nil
+ "Environment variables for the kaagum agent.
+
+This should be a list of environment variables to be used when starting
+the kaagum agent.
+
+Example usage to set custom environment variables:
+
+ (setq agent-shell-kaagum-environment
+ (agent-shell-make-environment-variables
+ \"MY_VAR\" \"some-value\"
+ \"MY_OTHER_VAR\" \"another-value\"))"
+ :type '(repeat string)
+ :group 'agent-shell)
+
(defun agent-shell-kaagum-make-agent-config ()
"Create a kaagum ACP agent configuration.
@@ -65,6 +81,7 @@ Returns an agent configuration alist using `agent-shell-make-agent-config'."
"Create a kaagum ACP client using BUFFER as context."
(agent-shell--make-acp-client :command agent-shell-kaagum-command
:command-params agent-shell-kaagum-parameters
+ :environment-variables agent-shell-kaagum-environment
:context-buffer buffer))
(defun agent-shell-kaagum--welcome-message (config)
--
2.54.0
next prev parent reply other threads:[~2026-11-05 0:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 17:39 draft: Feature to load external tools Ricardo Wurmus
2026-11-05 0:17 ` Arun Isaac
2026-11-05 0:19 ` Arun Isaac [this message]
2026-11-05 0:19 ` [PATCH 2/2] Allow custom tools Arun Isaac
2026-11-05 7:08 ` draft: Feature to load external tools Ricardo Wurmus
2026-11-05 10:59 ` Arun Isaac
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=20261105002005.22420-1-arunisaac@systemreboot.net \
--to=arunisaac@systemreboot.net \
--cc=kaagum@systemreboot.net \
--cc=rekado@elephly.net \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox