From c957275854bf15080e557cbc940e87b2ad049d5b Mon Sep 17 00:00:00 2001 From: Zheng Qu Date: Thu, 14 Dec 2023 09:02:43 +0100 Subject: [PATCH] fix: org-ai should now be properly set up --- spacemacs.org | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/spacemacs.org b/spacemacs.org index 18731c5..da93990 100644 --- a/spacemacs.org +++ b/spacemacs.org @@ -390,19 +390,17 @@ E.g. when visiting a soft/hard link. ** org-mode *** org-ai #+BEGIN_SRC emacs-lisp :tangle user-config.el - (use-package org-ai - :ensure :commands - (org-ai-mode) - :custom (org-ai-openai-api-token (auth-source-pick-first-password :host "api.openai.com")):init - (add-hook 'org-mode-hook #'org-ai-mode) - :config (setq org-ai-default-chat-model "gpt-3.5-turbo")(org-ai-install-yasnippets)) - - (use-package whisper - :load-path "~/.spacemacs.d/private/whisper.el/whisper.el" - :bind ("M-s-r" . whisper-run)) - (require 'whisper (expand-file-name "~/.spacemacs.d/private/whisper.el/whisper.el")) - (use-package greader :ensure) - (require 'org-ai-talk) + (use-package org-ai + :ensure t + :commands (org-ai-mode + org-ai-global-mode) + :custom (org-ai-openai-api-token (auth-source-pick-first-password :host "api.openai.com")) + :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 (require 'org-ai-talk) #+END_SRC *** org-pomodora