fix: move hermes config from config.el to README.org org-babel source

- Revert config.el changes (file is generated from README.org via tangle)
- Add dedicated ** +Hermes Agent+ section under * AI in README.org
- Add SPC z h keybinding to existing map! block in Minimize window section
- config.el should NEVER be edited directly
This commit is contained in:
Thierry Pouplier
2026-05-01 14:50:36 +00:00
parent a2a3baf7da
commit d73ed29733
2 changed files with 22 additions and 16 deletions

View File

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

View File

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