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