From 48bb8808854cba8caf70642aa54b4a5372614f0f Mon Sep 17 00:00:00 2001 From: Bram Schoenmakers Date: Thu, 11 Jan 2024 20:13:49 +0100 Subject: [PATCH] Rename the custom variables with the entry point URLs Took the liberty to rename because the package is still in its infancy. Besides, it's unlikely that anyone would change these URLs in their init file. --- README.org | 16 ++++++++-------- kagi.el | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.org b/README.org index 9baec84..95d7346 100644 --- a/README.org +++ b/README.org @@ -96,14 +96,14 @@ The token can be supplied directly as a string, but you could write a lambda to #+end_src #+RESULTS: -| Custom variable | Description | -|-------------------------------------+----------------------------------------------------------------------| -| kagi-api-enrichment-url | The Kagi Enrichment API entry point. | -| kagi-api-fastgpt-url | The Kagi FastGPT API entry point. | -| kagi-api-token | The Kagi API token. | -| kagi-summarize-default-language | Default target language of the summary. | -| kagi-summarizer-cache | Determines whether the Summarizer should cache results. | -| kagi-summarizer-engine | Which summary engine to use. | +| Custom variable | Description | +|---------------------------------+---------------------------------------------------------| +| kagi-api-token | The Kagi API token. | +| kagi-fastgpt-api-url | The Kagi FastGPT API entry point. | +| kagi-summarize-default-language | Default target language of the summary. | +| kagi-summarizer-api-url | The Kagi Summarizer API entry point. | +| kagi-summarizer-cache | Determines whether the Summarizer should cache results. | +| kagi-summarizer-engine | Which summary engine to use. | *** COMMENT Attribution :noexport: diff --git a/kagi.el b/kagi.el index 50cfee7..33b0742 100644 --- a/kagi.el +++ b/kagi.el @@ -63,12 +63,12 @@ https://kagi.com/settings?p=api" :type '(choice string function) :group 'kagi) -(defcustom kagi-api-fastgpt-url "https://kagi.com/api/v0/fastgpt" +(defcustom kagi-fastgpt-api-url "https://kagi.com/api/v0/fastgpt" "The Kagi FastGPT API entry point." :type '(choice string function) :group 'kagi) -(defcustom kagi-api-summarizer-url "https://kagi.com/api/v0/summarize" +(defcustom kagi-summarizer-api-url "https://kagi.com/api/v0/summarize" "The Kagi Summarizer API entry point." :type '(choice string function) :group 'kagi) @@ -218,7 +218,7 @@ interpretation." (curl-flags (kagi--curl-flags)) (all-flags (append call-process-flags curl-flags - (list kagi-api-fastgpt-url))) + (list kagi-fastgpt-api-url))) (return (apply #'call-process-region all-flags))) (if (zerop return) (buffer-string) @@ -238,7 +238,7 @@ interpretation." (curl-flags (kagi--curl-flags)) (all-flags (append call-process-flags curl-flags - (list kagi-api-summarizer-url))) + (list kagi-summarizer-api-url))) (return (apply #'call-process-region all-flags))) (if (zerop return) (buffer-string)