[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ellama f1fbb33521 03/53: add code review command
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ellama f1fbb33521 03/53: add code review command |
Date: |
Sun, 17 Dec 2023 18:57:56 -0500 (EST) |
branch: externals/ellama
commit f1fbb33521149a237e5757047cc16d7ee9f2e5ca
Author: Sergey Kostyaev <s.kostyaev@omp.ru>
Commit: Sergey Kostyaev <s.kostyaev@omp.ru>
add code review command
---
ellama.el | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/ellama.el b/ellama.el
index 7320e737ae..c265752b2c 100644
--- a/ellama.el
+++ b/ellama.el
@@ -56,7 +56,7 @@
:type 'boolean)
(defcustom ellama-user-nick "User" "User nick in logs."
- :grop 'ellama
+ :group 'ellama
:type 'string)
(defcustom ellama-assistant-nick "Ellama" "Assistant nick in logs."
@@ -235,12 +235,21 @@ default. Default value is `ellama-template'."
;;;###autoload
(defun ellama-summarize ()
- "Summarize selected region of current buffer."
+ "Summarize selected region or current buffer."
(interactive)
(let ((text (if (region-active-p)
(buffer-substring-no-properties (region-beginning)
(region-end))
(buffer-substring-no-properties (point-min) (point-max)))))
(ellama-instant (format "Summarize the following text:\n%s" text))))
+;;;###autoload
+(defun ellama-code-review ()
+ "Review code in selected region or current buffer."
+ (interactive)
+ (let ((text (if (region-active-p)
+ (buffer-substring-no-properties (region-beginning)
(region-end))
+ (buffer-substring-no-properties (point-min) (point-max)))))
+ (ellama-instant (format "Review the following code and make concise
suggestions:\n```\n%s\n```" text))))
+
(provide 'ellama)
;;; ellama.el ends here.
- [elpa] branch externals/ellama created (now 11f601db8e), ELPA Syncer, 2023/12/17
- [elpa] externals/ellama 3bd6acccd3 02/53: begin ellama implementation, ELPA Syncer, 2023/12/17
- [elpa] externals/ellama 547ca3a266 07/53: silence url retrieve, ELPA Syncer, 2023/12/17
- [elpa] externals/ellama 3d3fa91206 04/53: add ellama change commands, ELPA Syncer, 2023/12/17
- [elpa] externals/ellama f1fbb33521 03/53: add code review command,
ELPA Syncer <=
- [elpa] externals/ellama c14dad0065 05/53: add make list and make table commands, ELPA Syncer, 2023/12/17
- [elpa] externals/ellama b9fe2ebdaa 06/53: add ellama-summarize-webpage function, ELPA Syncer, 2023/12/17
- [elpa] externals/ellama 8bd196068a 08/53: add functions to work with code, ELPA Syncer, 2023/12/17
- [elpa] externals/ellama a1112d64a0 09/53: improve ask about template, ELPA Syncer, 2023/12/17
- [elpa] externals/ellama 00b8ddd155 19/53: fix for use libxml-parse-html-region, ELPA Syncer, 2023/12/17
- [elpa] externals/ellama bfac7db4ef 27/53: Create melpa.yml, ELPA Syncer, 2023/12/17
- [elpa] externals/ellama 963843016b 14/53: add ellama-ask-about gif and fix typos, ELPA Syncer, 2023/12/17
- [elpa] externals/ellama 660f08c126 23/53: add badges and installation section to readme, ELPA Syncer, 2023/12/17
- [elpa] externals/ellama 3eac28a1ea 31/53: Merge pull request #4 from stardiviner/main, ELPA Syncer, 2023/12/17
- [elpa] externals/ellama 327c488e9b 33/53: Format and remove unnecessary code., ELPA Syncer, 2023/12/17