![]() The snippet is further down… Start with chatgpt-shell-visit-doctor as the entry point, setting things up for us. If you want to run it, you'll need chatgpt-shell installed and set up.There isn't too much to the code, but beware: It's a mash between the ChatGPT shell and a magit commit buffer:įigure 3: courtesy of thriveth and dr.dk. This is where M-x chatgpt-shell-prompt-compose comes in. That is, launch a dedicated buffer (not the shell itself), ask the question, maybe paste some snippets, and send it on its way with that oh so familiar and satisfying C-c C-c binding ( sending mail also says hello). The Emacs ChatGPT shell and its minibuffer prompts work fairly well for my needs, yet I often found myself wishing it could behave more like a magit commit buffer. I want a local project set up as quickly as possible. While I may want to dig deeper into things in the future, at present I just want to dabble with JavaScript. Reentering the JavaScript world as a noob, I often know what I want to enable, but I'm unfamiliar with which project knobs to turn to set things up. I'm giving JavaScript another try, but this time with an Emacs chatgpt-shell standing by. I guess that's what some refer to as Javascript Fatigue. ![]() I was somewhat put off (or maybe just lazy?) by the initial ramp-up to reenter the JavaScript world. Back then, I primarily relied on the Google Closure Compiler, now maybe an archaeological artefact? These days, it's hard not to bump into any JavaScript project that doesn't rely on npm, along with many other tools like the Typescript compiler, ESLint, Prettier… There are a ton of available frameworks too. It's been roughly a decade since I wrote any significant amount of JavaScript.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |