Add autoload to kagi-translate and remove from kagi-summarize
This commit is contained in:
parent
4842a575dc
commit
1b88201fa9
1 changed files with 1 additions and 1 deletions
2
kagi.el
2
kagi.el
|
@ -439,6 +439,7 @@ PROMPT is passed to the corresponding parameters of
|
||||||
kagi--language-history
|
kagi--language-history
|
||||||
"English"))
|
"English"))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
(defun kagi-translate (text target-language &optional source-language interactive-p)
|
(defun kagi-translate (text target-language &optional source-language interactive-p)
|
||||||
"Translate the TEXT to TARGET-LANGUAGE using FastGPT.
|
"Translate the TEXT to TARGET-LANGUAGE using FastGPT.
|
||||||
|
|
||||||
|
@ -501,7 +502,6 @@ result is short, otherwise it is displayed in a new buffer."
|
||||||
"Non-nil if string S is a URL."
|
"Non-nil if string S is a URL."
|
||||||
(string-match-p (rx (seq bos "http" (? "s") "://" (+ (not space)) eos)) s))
|
(string-match-p (rx (seq bos "http" (? "s") "://" (+ (not space)) eos)) s))
|
||||||
|
|
||||||
;;;###autoload
|
|
||||||
(defun kagi-summarize (text-or-url &optional language engine format)
|
(defun kagi-summarize (text-or-url &optional language engine format)
|
||||||
"Return the summary of the given TEXT-OR-URL.
|
"Return the summary of the given TEXT-OR-URL.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue