branch: externals/ellama
commit 2d4de7e346541aad05ee6bb27078e1cd4f22aadf
Author: Sergey Kostyaev <sskosty...@gmail.com>
Commit: Sergey Kostyaev <sskosty...@gmail.com>

    Update ellama configuration
    
    Updated README.org to include new `:hook` and `:init` configurations for the
    ellama package. Added automatic scrolling option (`ellama-auto-scroll`) and
    ensured that the last message in the chat buffer can be sent with C-c C-c.
---
 README.org | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/README.org b/README.org
index bca8fb52a7..e9289bc87e 100644
--- a/README.org
+++ b/README.org
@@ -35,11 +35,12 @@ You can customize ellama configuration like this:
   (use-package ellama
     :ensure t
     :bind ("C-c e" . ellama-transient-main-menu)
+    ;; send last message in chat buffer with C-c C-c
+    :hook (org-ctrl-c-ctrl-c-final . ellama-chat-send-last-message)
+    :init (setopt ellama-auto-scroll t)
     :config
     ;; show ellama context in header line in all buffers
-    (ellama-context-header-line-global-mode +1)
-    ;; send last message in chat buffer with C-c C-c
-    (add-hook 'org-ctrl-c-ctrl-c-final-hook #'ellama-chat-send-last-message))
+    (ellama-context-header-line-global-mode +1))
 #+END_SRC
 
 More sofisticated configuration example:
@@ -48,6 +49,8 @@ More sofisticated configuration example:
   (use-package ellama
     :ensure t
     :bind ("C-c e" . ellama-transient-main-menu)
+    ;; send last message in chat buffer with C-c C-c
+    :hook (org-ctrl-c-ctrl-c-final . ellama-chat-send-last-message)
     :init
     ;; setup key bindings
     ;; (setopt ellama-keymap-prefix "C-c e")
@@ -110,9 +113,7 @@ More sofisticated configuration example:
     (setopt ellama-instant-display-action-function #'display-buffer-at-bottom)
     :config
     ;; show ellama context in header line in all buffers
-    (ellama-context-header-line-global-mode +1)
-    ;; send last message in chat buffer with C-c C-c
-    (add-hook 'org-ctrl-c-ctrl-c-final-hook #'ellama-chat-send-last-message))
+    (ellama-context-header-line-global-mode +1))
 #+END_SRC
 
 ** Commands

Reply via email to