Use package instead of submodule for chatgpt-shell

This commit is contained in:
Camden Dixie O'Brien 2023-12-08 11:31:57 +00:00
parent dec4206e70
commit e155779d24
3 changed files with 3 additions and 10 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "chatgpt-shell"]
path = chatgpt-shell
url = https://github.com/xenodium/chatgpt-shell

@ -1 +0,0 @@
Subproject commit f7a53903ebedb1bd67dc9dea6ae9893fb70d4d49

View File

@ -1341,14 +1341,11 @@
#+end_src
** ChatGPT
The =chatpt-shell= package is in a git submodule, so this has to be
added to the [[help:load-path][load-path]] and ~require~'d:
The =chatpt-shell= package provides a shell-like interface for
ChatGPT.
#+begin_src emacs-lisp
(let ((path (concat (getenv "HOME")
"/.emacs.d/chatgpt-shell")))
(add-to-list 'load-path path))
(require 'chatgpt-shell)
(use-package chatgpt-shell)
#+end_src
[[help:chatgpt-shell-openai-key][chatgpt-shell-openai-key]] must also be set to a function that