from Hacker News

Show HN: ChatGPT-arcana.el, ChatGPT in your Emacs

by hebejebelus on 3/2/23, 11:02 PM with 2 comments

This is far from complete, and I am far from an elisp genius, but this is an Emacs package to help you write code or text or whatever in your favourite operating system slash text editor. It's got a couple of useful functions like inserting at point with local code context, querying about something and putting the output in a temporary buffer, passing the current major mode to ChatGPT, contextual system prompts, and so on. Some small demos in the readme.

Some of you may enjoy the deep magic this might unleash, so I'm posting it here. And feel free to add pull requests if you are a better elisper than I am (a very low bar).

(Yes, I have truly hit the HN goldrush here - emacs and ChatGPT in a single post! If only I had written a rust client for it too)

  • by scottjad on 3/3/23, 2:08 AM

    There's also https://github.com/joshcho/ChatGPT.el but it hasn't been updated yet to use the API that came out yesterday.
  • by hebejebelus on 3/2/23, 11:10 PM

    The pricing of the API is truly world-changing. I've sent hundreds of requests today in the process of building this script, and have yet to spend more than a single cent.