dotfiles/emacs/+chatGPT.el
James Patrick 8e886e9135 Added ChatGPT query API for Emacs.
This is incomplete and does not currently work on my personal
machine, due to how NixOS handles pip.
2023-04-23 22:28:17 -04:00

10 lines
377 B
EmacsLisp

(use-package! chatgpt
:defer t
:config
(unless (boundp 'python-interpreter)
(defvaralias 'python-interpreter 'python-shell-interpreter))
(setq chatgpt-repo-path (expand-file-name "straight/repos/ChatGPT.el/" doom-local-dir))
(set-popup-rule! (regexp-quote "*ChatGPT*")
:side 'bottom :size .5 :ttl nil :quit t :modeline nil)
:bind ("C-c q" . chatgpt-query))