emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ellama d9de354092 17/19: Add simple configuration examp


From: ELPA Syncer
Subject: [elpa] externals/ellama d9de354092 17/19: Add simple configuration example to readme
Date: Sun, 23 Feb 2025 06:58:09 -0500 (EST)

branch: externals/ellama
commit d9de354092ae1267f5c0f5a91177b402bccf7294
Author: Sergey Kostyaev <sskostyaev@gmail.com>
Commit: Sergey Kostyaev <sskostyaev@gmail.com>

    Add simple configuration example to readme
---
 README.org | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/README.org b/README.org
index 205216a3dc..f33a4524e4 100644
--- a/README.org
+++ b/README.org
@@ -31,6 +31,19 @@ You can use ~ellama~ with other model or other llm provider.
 Without any configuration, the first available ollama model will be used.
 You can customize ellama configuration like this:
 
+#+BEGIN_SRC  emacs-lisp
+  (use-package ellama
+    :ensure t
+    :bind ("C-c e" . ellama-transient-main-menu)
+    :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))
+#+END_SRC
+
+More sofisticated configuration example:
+
 #+BEGIN_SRC  emacs-lisp
   (use-package ellama
     :ensure t
@@ -99,7 +112,7 @@ You can customize ellama configuration like this:
     ;; 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-hook #'ellama-chat-send-last-message))
+    (add-hook 'org-ctrl-c-ctrl-c-final-hook #'ellama-chat-send-last-message))
 #+END_SRC
 
 ** Commands



reply via email to

[Prev in Thread] Current Thread [Next in Thread]