Skip to content

Commit

Permalink
Merge pull request joshcho#22 from cnsunyour/add_doomemacs_installation
Browse files Browse the repository at this point in the history
Add doom-emacs installation instruction
  • Loading branch information
joshcho authored Dec 17, 2022
2 parents 862c5b3 + a107d70 commit 54dff8e
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.org
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,24 @@ NOTE: Assumes Quelpa installation.

*** [[https://github.com/doomemacs/doomemacs][Doom Emacs]]

I am unfamiliar with Doom, so pull requests for how to install with Doom are welcome.
In ~packages.el~ ,
#+begin_src emacs-lisp
(package! chatgpt
:recipe (:host github :repo "joshcho/ChatGPT.el" :files ("dist" "*.el")))
#+end_src

In ~config.el~ ,
#+begin_src emacs-lisp
(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))
#+end_src

** Usage
- Press ~C-c q~ to query ChatGPT.
Expand Down

0 comments on commit 54dff8e

Please sign in to comment.