From 8c1fea6180155ad10ede92de1f974668d4b435b0 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 13 Mar 2026 15:57:42 -0400 Subject: [PATCH] [emacs] Add agent and opencode opens --- emacs/.config/doom/config.el | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/emacs/.config/doom/config.el b/emacs/.config/doom/config.el index 0b9e3c2..7f0b236 100644 --- a/emacs/.config/doom/config.el +++ b/emacs/.config/doom/config.el @@ -55,6 +55,21 @@ (pop-to-buffer buf) (vterm-send-string "hrdjsh\n"))) +;; Open Cursor Agent term popup (vterm with agent) +(defun powellc/open-cursor-agent () + "Open a vterm popup and run agent." + (interactive) + (let ((buf (vterm t))) + (pop-to-buffer buf) + (vterm-send-string "agent\n"))) + +;; Open Opencode Agent term popup (vterm with opencode) +(defun powellc/open-opencode-agent () + "Open a vterm popup and run agent." + (interactive) + (let ((buf (vterm t))) + (pop-to-buffer buf) + (vterm-send-string "opencode\n"))) (load! "+django-tests") (map! :after python @@ -86,7 +101,11 @@ :desc "isort buffer" "I" #'py-isort-buffer :desc "Links in buffer" "l" #'ace-link-org) (:prefix "o" - :desc "Open Hungryroot shell" "S" #'powellc/open-hr-term)) + :desc "Open curosr shell" "C" #'powellc/open-cursor-agent + :desc "Open curosr shell" "c" #'powellc/open-opencode-agent + :desc "Open Hungryroot shell" "S" #'powellc/open-hr-term) + (:prefix "g" + :desc "PR comments for branch" "c" #'powellc/gh-pr-comments-for-branch)) (defun unfill-paragraph () "Takes a multi-line paragraph and makes it into a single line of text."