From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=systemreboot.net; s=default; t=1793838011; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r9rXjVx9ruMmc6kEdsocqjBSmiozimTsq+vpItyytZA=; b=WFwjc7RLbmwWBmriA59DIbBJftHD1xz5cYoytWHO5xBH0bg0YPBcsQfcAZ7MC2W38IzRVh Q+xWszOvouvtEt9rcvZinHfTxsf1Rui9TII7DIOJQGkKUe03iMQ/Y9+qPRmIxpBmn2GP7j fOrlQpeDcXCvRXQlPZX4OKOmkoU7trj8qH1dsDhvJ+ZYccvMdusgimFbjZgS1YoqypWVQp ysXqiMOBavsggpJILtFBTqT++qHXQwxCOwP9FEEgumNoifeIQpi5yx4VtCq+hy0mQseQUA GB1qISliHQ6xvZMcrJjWVZ9aVOWa7YQRGHwdvqOehZSya/3ZG2gl2lllYs2jPA== Received: from steel ( [192.168.1.1]) by hrrol.systemreboot.net (OpenSMTPD) with ESMTPSA id 58b4f436 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 5 Nov 2026 00:20:11 +0000 (UTC) From: Arun Isaac To: Arun Isaac , Ricardo Wurmus , kaagum@systemreboot.net Subject: [PATCH 1/2] Allow setting environment variables with agent shell. Date: Thu, 5 Nov 2026 00:19:55 +0000 Message-ID: <20261105002005.22420-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.54.0 In-Reply-To: <87se1grv11.fsf@systemreboot.net> References: <87se1grv11.fsf@systemreboot.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: --- 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