copilot & gpt packages add

This commit is contained in:
2025-03-08 12:08:53 +09:00
parent 5ebf4d23bb
commit 8e17f130e7
2 changed files with 15 additions and 0 deletions

View File

@ -7,6 +7,17 @@
(setq gptel-model "gpt-4o-mini") (setq gptel-model "gpt-4o-mini")
(setq gptel-api-key custom-chatgpt-my-key)) (setq gptel-api-key custom-chatgpt-my-key))
(use-package org-ai
:straight t
:ensure t
:commands (org-ai-mode
org-ai-global-mode)
:init
(add-hook 'org-mode-hook #'org-ai-mode) ; enable org-ai in org-mode
(org-ai-global-mode) ; installs global keybindings on C-c M-a
:config
(setq org-ai-default-chat-model "gpt-4") ; if you are on the gpt-4 beta:
(org-ai-install-yasnippets)) ; if you are using yasnippet and want `ai` snippets
(provide 'init-chatgpt) (provide 'init-chatgpt)
;;; init-chatgpt.el ends here ;;; init-chatgpt.el ends here

View File

@ -5,5 +5,9 @@
:ensure t) :ensure t)
;; :hook (prog-mode . copilot-mode)) ;; :hook (prog-mode . copilot-mode))
(use-package copilot-chat
:straight (:host github :repo "chep/copilot-chat.el" :files ("*.el"))
:after (request org markdown-mode shell-maker))
(provide 'init-copilot) (provide 'init-copilot)
;;; init-copilot.el ends here ;;; init-copilot.el ends here