[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ellama f6337ebb79 6/8: Add ellama-long-lines-length cus
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/ellama f6337ebb79 6/8: Add ellama-long-lines-length custom variable |
|
Date: |
Fri, 19 Jan 2024 18:58:00 -0500 (EST) |
branch: externals/ellama
commit f6337ebb79385c84ec7bd50a30179809cf30d29d
Author: Sergey Kostyaev <sskostyaev@gmail.com>
Commit: Sergey Kostyaev <sskostyaev@gmail.com>
Add ellama-long-lines-length custom variable
---
ellama.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/ellama.el b/ellama.el
index ae98e9e87c..538728a888 100644
--- a/ellama.el
+++ b/ellama.el
@@ -259,6 +259,12 @@ It should be a function with single argument generated
text string."
:group 'ellama
:type 'symbol)
+(defcustom ellama-long-lines-length 100
+ "Long lines length for fill paragraph call.
+Too low value can break generated code by splitting long comment lines."
+ :group 'ellama
+ :type 'integer)
+
(defvar-local ellama--change-group nil)
(defvar-local ellama--current-request nil)
@@ -289,7 +295,8 @@ It should be a function with single argument generated text
string."
(--> text
(split-string it "\n")
(-map (lambda (el)
- (if (> (length el) 100)
+ (if (> (length el)
+ ellama-long-lines-length)
(ellama--fill-string el)
el)) it)
(string-join it "\n")))
- [elpa] externals/ellama updated (b301ed87f5 -> 77d614fd44), ELPA Syncer, 2024/01/19
- [elpa] externals/ellama 6a426dd913 2/8: Programmatically translate code blocks from markdown to org-mode, ELPA Syncer, 2024/01/19
- [elpa] externals/ellama dec7ebdf5e 3/8: Improve org processing, ELPA Syncer, 2024/01/19
- [elpa] externals/ellama f6337ebb79 6/8: Add ellama-long-lines-length custom variable,
ELPA Syncer <=
- [elpa] externals/ellama 466f16f425 7/8: Update documentation, ELPA Syncer, 2024/01/19
- [elpa] externals/ellama 8bab25150a 1/8: Use org-mode by default for chat. Experimental, ELPA Syncer, 2024/01/19
- [elpa] externals/ellama 77d614fd44 8/8: Merge pull request #52 from s-kostyaev/org-experiment, ELPA Syncer, 2024/01/19
- [elpa] externals/ellama 1213032397 4/8: Use org-mode for ellama-instant, ELPA Syncer, 2024/01/19
- [elpa] externals/ellama 02bb628778 5/8: Fix bug wrong clearing session, ELPA Syncer, 2024/01/19