{"id":11261,"date":"2023-04-04T13:08:35","date_gmt":"2023-04-04T17:08:35","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=11261"},"modified":"2023-04-04T13:08:35","modified_gmt":"2023-04-04T17:08:35","slug":"chatgpt-in-org-mode","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=11261","title":{"rendered":"ChatGPT in Org Mode"},"content":{"rendered":"<p>There\u2019s 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 <a href=\"http:\/\/irreal.org\/blog\/?p=11198\">Vivek Haldar\u2019s contribution<\/a> but there have been several others. One of those was by Alvaro Ramirez who has continued to work on and improve his app.<\/p>\n<p>His latest addition is an Org mode interface that works from a code block. Here it is in action:<\/p>\n<blockquote class=\"twitter-tweet\">\n<p lang=\"en\" dir=\"ltr\"><a href=\"https:\/\/twitter.com\/hashtag\/chatgpt?src=hash&amp;ref_src=twsrc%5Etfw\">#chatgpt<\/a> <a href=\"https:\/\/twitter.com\/hashtag\/emacs?src=hash&amp;ref_src=twsrc%5Etfw\">#emacs<\/a> shell now with <a href=\"https:\/\/twitter.com\/hashtag\/orgmode?src=hash&amp;ref_src=twsrc%5Etfw\">#orgmode<\/a> babel support<a href=\"https:\/\/t.co\/5oRs9IKnbK\">https:\/\/t.co\/5oRs9IKnbK<\/a> <a href=\"https:\/\/t.co\/ITcy2cy7Vr\">pic.twitter.com\/ITcy2cy7Vr<\/a><\/p>\n<p>\u2014 Alvaro Ramirez (@xenodium) <a href=\"https:\/\/twitter.com\/xenodium\/status\/1642591698436907011?ref_src=twsrc%5Etfw\">April 2, 2023<\/a><\/p><\/blockquote>\n<p><script async=\"\" src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>This is very neat. You simply declare a source block with a source type of <code>chatgpt-shell<\/code> 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!<\/p>\n<p>Ramirez says that it\u2019s still early days for the app and it\u2019s not yet in MELPA but you can get the code from his <a href=\"https:\/\/github.com\/xenodium\/chatgpt-shell\">chatgpt-shell GitHub repository<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There\u2019s 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\u2019s contribution but there have been several others. &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=11261\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18,4],"class_list":["post-11261","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs","tag-org-mode"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11261"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11261\/revisions"}],"predecessor-version":[{"id":11262,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11261\/revisions\/11262"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}