There’s been a lot of excitement about ChatGPT lately so of course Emacs hackers have risen to the challenge with Emacs interfaces to it. The first I was aware of was Vivek Haldar’s contribution but there have been several others. One of those was by Alvaro Ramirez who has continued to work on and improve his app.
His latest addition is an Org mode interface that works from a code block. Here it is in action:
#chatgpt #emacs shell now with #orgmode babel supporthttps://t.co/5oRs9IKnbK pic.twitter.com/ITcy2cy7Vr
— Alvaro Ramirez (@xenodium) April 2, 2023
This is very neat. You simply declare a source block with a source type of chatgpt-shell
and whatever you put inside is considered the prompt. In usual Org mode style you can execute the block and Org will insert the results in your buffer. A really beautiful integration of ChatGPT with Org mode!
Ramirez says that it’s still early days for the app and it’s not yet in MELPA but you can get the code from his chatgpt-shell GitHub repository.