[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gptel 09729ee718 089/273: gptel: Create customization grou
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gptel 09729ee718 089/273: gptel: Create customization group |
Date: |
Wed, 1 May 2024 10:01:53 -0400 (EDT) |
branch: elpa/gptel
commit 09729ee718bfeb4889ed41e38b00fbaa8d7d3ee8
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
gptel: Create customization group
gptel.el (gptel-default-mode): Also make `gptel-default-mode' a user
option.
---
gptel.el | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/gptel.el b/gptel.el
index c87b4cdd15..f9635b777c 100644
--- a/gptel.el
+++ b/gptel.el
@@ -66,6 +66,9 @@
(require 'map)
(require 'text-property-search)
+(defgroup gptel nil
+ "Interact with ChatGPT from anywhere in Emacs.")
+
(defcustom gptel-api-key #'gptel-api-key-from-auth-source
"An OpenAI API key (string).
@@ -117,9 +120,15 @@ to ChatGPT. Note: this hook runs even if the request
fails."
:type 'hook)
(defvar gptel-default-session "*ChatGPT*")
-(defvar gptel-default-mode (if (featurep 'markdown-mode)
+(defcustom gptel-default-mode (if (featurep 'markdown-mode)
'markdown-mode
- 'text-mode))
+ 'text-mode)
+ "The default major mode for dedicated chat buffers.
+
+If `markdown-mode' is available, it is used. Otherwise gptel
+defaults to `text-mode'."
+ :group 'gptel
+ :type 'symbol)
;; TODO: Handle `prog-mode' using the `comment-start' variable
(defcustom gptel-prompt-prefix-alist
- [nongnu] elpa/gptel 23332a9bc5 077/273: gptel-transient: Add outline-minor-mode support, (continued)
- [nongnu] elpa/gptel 23332a9bc5 077/273: gptel-transient: Add outline-minor-mode support, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 00abbf7597 081/273: gptel-transient: More visual feedback, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 444a43134f 083/273: gptel-curl: Fix current-buffer for Curl requests, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 37c381c2e5 092/273: README: Update with acknowledgments and more, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel d13b0c4ab7 088/273: gptel-transient: Fix gptel-system-prompt, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 6202474a6e 080/273: README: Update with changes to gptel-menu, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 075609544a 085/273: README: Update instructions for setting key (#46), ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel a7207a3835 097/273: README: Add TOC, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel f218388d4d 082/273: gptel-transient: Fix bug when sending in existing session, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 30700cc88a 096/273: README: Mention extensions, gptel-proxy, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 09729ee718 089/273: gptel: Create customization group,
ELPA Syncer <=
- [nongnu] elpa/gptel ac754ceb2a 086/273: gptel: Handle read-only gptel-buffers, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel cc6c5e7321 104/273: gptel: saving and restoring state, and limiting context, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 24add64455 114/273: gptel: Adjust how gptel--system-message is set, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 17a58d38e7 135/273: gptel: Fix bug in url-retrieve setup, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 61c0df5e19 119/273: gptel, gptel-curl: Make the gptel text-property non-sticky, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 50a2498259 126/273: README: Tweak instructions for local LLMs, mention #120, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel ec0e461b35 128/273: gptel-curl: Increased curl timeout (#127), ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel d5949ef428 140/273: gptel-curl: handle large Curl payloads with a temp file (#137), ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 0ea3c7fb15 143/273: gptel-transient: Improve suffix message editor, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel ce75072f9d 152/273: gptel: Bump version, ELPA Syncer, 2024/05/01