diff --git a/.config/emacs/lisp/init-chatgpt.el b/.config/emacs/lisp/init-chatgpt.el index fb75b77..999bd94 100644 --- a/.config/emacs/lisp/init-chatgpt.el +++ b/.config/emacs/lisp/init-chatgpt.el @@ -7,6 +7,17 @@ (setq gptel-model "gpt-4o-mini") (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) ;;; init-chatgpt.el ends here diff --git a/.config/emacs/lisp/init-copilot.el b/.config/emacs/lisp/init-copilot.el index 34f9c7b..97c8eb1 100644 --- a/.config/emacs/lisp/init-copilot.el +++ b/.config/emacs/lisp/init-copilot.el @@ -5,5 +5,9 @@ :ensure t) ;; :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) ;;; init-copilot.el ends here