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:
@@ -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
|
#+begin_src emacs-lisp
|
||||||
(map! :leader
|
(map! :leader
|
||||||
(:prefix ("w" . "window")
|
(: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
|
#+end_src
|
||||||
|
|
||||||
** Ultra-scroll
|
** Ultra-scroll
|
||||||
@@ -1830,6 +1832,23 @@ Org-AI
|
|||||||
(org-ai-install-yasnippets)) ; if you are using yasnippet and want `ai` snippets
|
(org-ai-install-yasnippets)) ; if you are using yasnippet and want `ai` snippets
|
||||||
#+end_src
|
#+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
|
* Tramp
|
||||||
Remote connection to server inside emacs (with all my config) <3
|
Remote connection to server inside emacs (with all my config) <3
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,7 @@
|
|||||||
|
|
||||||
(map! :leader
|
(map! :leader
|
||||||
(:prefix ("w" . "window")
|
(: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))
|
|
||||||
|
|
||||||
(use-package! ultra-scroll
|
(use-package! ultra-scroll
|
||||||
:init
|
:init
|
||||||
@@ -943,18 +941,7 @@ Handles org-clock and context link capture for tasks."
|
|||||||
(after! vterm
|
(after! vterm
|
||||||
(add-hook 'vterm-mode-hook
|
(add-hook 'vterm-mode-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(evil-local-set-key 'insert (kbd "C-j") #'vterm--self-insert)))
|
(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")))))))
|
|
||||||
|
|
||||||
;; GPTel AI chat for emacs
|
;; GPTel AI chat for emacs
|
||||||
(use-package! gptel
|
(use-package! gptel
|
||||||
|
|||||||
Reference in New Issue
Block a user