[emacs] Add agent and opencode opens

This commit is contained in:
2026-03-13 15:57:42 -04:00
parent 1fb621a3d6
commit 8c1fea6180

View File

@ -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."