https://github.com/joshcho/ChatGPT.el Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + For + Enterprise + Teams + Startups + Education + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} joshcho / ChatGPT.el Public * Notifications * Fork 1 * Star 20 License GPL-3.0 license 20 stars 1 fork Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights joshcho/ChatGPT.el This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/j] Use Git or checkout with SVN using the web URL. [gh repo clone joshch] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @joshcho joshcho Update README.org ... 67083a9 Dec 10, 2022 Update README.org 67083a9 Git stats * 13 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time LICENSE Add chatgpt-emacs.el, README.org, LICENSE Dec 10, 2022 README.org Update README.org Dec 10, 2022 chatgpt.el Simplify README Dec 10, 2022 chatgpt.py Simplify README Dec 10, 2022 View code [ ] ChatGPT.el Installation Authentication Straight Quelpa Usage Customization Misc. Future Roadmap README.org ChatGPT.el ChatGPT in Emacs. Demo Installation Authentication Follow instructions at acheong08/ChatGPT and create config.json in your home directory, not local. Straight (use-package chatgpt :straight (:host github :repo "joshcho/ChatGPT.el" :files ("dist" "*.el")) :bind ("C-c q" . chatgpt-query) :config (setq chatgpt-repo-path "~/.emacs.d/straight/repos/ChatGPT.el/")) Quelpa (quelpa '(chatgpt :fetcher git :url "https://github.com/joshcho/ChatGPT.el.git")) (use-package chatgpt :quelpa t :bind ("C-c q" . chatgpt-query) :config (setq chatgpt-repo-path (expand-file-name "ChatGPT.el" quelpa-build-dir))) Usage * Press C-c q to query ChatGPT. * Select region before C-c q to query ChatGPT by type. Customization Customize chatgpt-query-types for your own types. (setq chatgpt-query-types '( ;; ChatGPT.el defaults ("doc" . "Please write the documentation for the following function.\n\n%s") ("bug" . "There is a bug in the following function, please help me fix it.\n\n%s") ("understand" . "What does the following function do?\n\n%s") ("improve" . "Please improve the following code.\n\n%s") ;; your new prompt ("my-custom-type" . "My custom prompt.\n\n%s"))) Misc. * Don't use "custom" as a type. It's reserved for custom prepend string through minibuffer. Future Roadmap * Authenticate using browser * Add more query types * Add structure to \*ChatGPT\* buffer * Don't force config.json in home About No description, website, or topics provided. Resources Readme License GPL-3.0 license Stars 20 stars Watchers 1 watching Forks 1 fork Releases No releases published Packages 0 No packages published Languages * Emacs Lisp 95.2% * Python 4.8% Footer (c) 2022 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.