refactor(config): Update Emacs configuration across multiple modules
- Prefix gptel backend names with "gptel-" for consistency - Add denote-org-backlinks-for-heading keybinding - Refine recentf exclusions for org journal files - Remove org-default-priority setting - Add gptel and denote backlink buffer rules to ibuffer - Enable markdown-ts-mode for Emacs 31+ with truncate lines - Add electric-pair support for equals sign - Update popper and window management regexes for new buffer names
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
:description "the name of the buffer whose contents are to be retrieved"))
|
||||
:category "emacs") ; An arbitrary label for grouping
|
||||
|
||||
(gptel-make-openai "Kimi-Code"
|
||||
(gptel-make-openai "gptel-Kimi-Code"
|
||||
:host "api.kimi.com"
|
||||
:endpoint "/coding/v1/chat/completions"
|
||||
:protocol "https"
|
||||
@@ -44,7 +44,7 @@
|
||||
("Authorization" . ,(concat "Bearer " key))))))
|
||||
|
||||
(setq gptel-model 'kimi-for-coding
|
||||
gptel-backend (gptel-get-backend "Kimi-Code"))
|
||||
gptel-backend (gptel-get-backend "gptel-Kimi-Code"))
|
||||
|
||||
(defun my-gptel--sanitize-filename (name)
|
||||
"Clean NAME into a safe kebab-case filename string."
|
||||
@@ -124,7 +124,7 @@ from the last 1500 characters of the buffer."
|
||||
|
||||
:init
|
||||
(with-eval-after-load 'gptel
|
||||
(gptel-make-openai "Kimi-Code-magit"
|
||||
(gptel-make-openai "gptel-Kimi-Code-magit"
|
||||
:host "api.kimi.com"
|
||||
:endpoint "/coding/v1/chat/completions"
|
||||
:protocol "https"
|
||||
@@ -141,7 +141,7 @@ from the last 1500 characters of the buffer."
|
||||
("Authorization" . ,(concat "Bearer " key))))))
|
||||
|
||||
(setq gptel-magit-model 'kimi-for-coding
|
||||
gptel-magit-backend (gptel-get-backend "Kimi-Code-magit"))))
|
||||
gptel-magit-backend (gptel-get-backend "gptel-Kimi-Code-magit"))))
|
||||
|
||||
(provide 'init-gptel)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user