diff --git a/doom/.config/doom/README.org b/doom/.config/doom/README.org index 584784a..a54ebbb 100644 --- a/doom/.config/doom/README.org +++ b/doom/.config/doom/README.org @@ -112,7 +112,9 @@ My current workflow consist in having the 3-5 files I work on open in vertical s #+begin_src emacs-lisp (map! :leader (:prefix ("w" . "window") - :desc "Minimize window" "O" #'minimize-window)) + :desc "Minimize window" "O" #'minimize-window) + (:prefix ("z" . "Personal") + :desc "Hermes Agent" "h" #'gortium/hermes-vterm)) #+end_src ** Ultra-scroll @@ -1830,6 +1832,23 @@ Org-AI (org-ai-install-yasnippets)) ; if you are using yasnippet and want `ai` snippets #+end_src +** +Hermes Agent+ +Hermes Agent runs on lazyworkhorse server. Launched via SSH in a vterm buffer. + +#+begin_src emacs-lisp +(after! vterm + (defun gortium/hermes-vterm () + "Launch Hermes Agent in vterm via SSH to lazyworkhorse (CLI mode)." + (interactive) + (let ((buf (get-buffer-create "*hermes*"))) + (switch-to-buffer buf) + (unless (get-buffer-process buf) + (vterm buf) + (let ((proc (get-buffer-process buf))) + (when proc + (process-send-string proc "ssh -t lazyworkhorse hermes\n"))))))) +#+end_src + * Tramp Remote connection to server inside emacs (with all my config) <3 diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index 0d1a372..ee75e4d 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -18,9 +18,7 @@ (map! :leader (:prefix ("w" . "window") - :desc "Minimize window" "O" #'minimize-window) - (:prefix ("z" . "Personal") - :desc "Hermes Agent" "h" #'gortium/hermes-vterm)) + :desc "Minimize window" "O" #'minimize-window)) (use-package! ultra-scroll :init @@ -943,18 +941,7 @@ Handles org-clock and context link capture for tasks." (after! vterm (add-hook 'vterm-mode-hook (lambda () - (evil-local-set-key 'insert (kbd "C-j") #'vterm--self-insert))) - ;; Quick launch Hermes Agent on lazyworkhorse server - (defun gortium/hermes-vterm () - "Launch Hermes Agent in vterm via SSH to lazyworkhorse (CLI mode)." - (interactive) - (let ((buf (get-buffer-create "*hermes*"))) - (switch-to-buffer buf) - (unless (get-buffer-process buf) - (vterm buf) - (let ((proc (get-buffer-process buf))) - (when proc - (process-send-string proc "ssh -t lazyworkhorse hermes\n"))))))) + (evil-local-set-key 'insert (kbd "C-j") #'vterm--self-insert)))) ;; GPTel AI chat for emacs (use-package! gptel