News for hackers. Stuff that matters.
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by edgyquant on Thursday August 27, 2026 @10:19AM (#49465331)
What are people’s workflows for using eMacs with generative coding? I’m trying to get a workflow where I can generate code and approve it like a PR (maybe leave comments for a next round of generation) but I’m new to eMacs and the ai coding package isn’t working with the latest eMacs
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by jwr on Thursday August 27, 2026 @12:20PM (#49467298)
I use cLaude cOde in my eMacs (through ghostel, which is unbelievably great!) to generate code :-)

I then use mAgit to review it.

Re:Emacs 31: An unofficial guide to Markdown-ts-mode by tom_ on Thursday August 27, 2026 @12:54PM (#49467773)
The iPhone autocorrects it to eMacs... it's so annoying.
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by mimischi on Thursday August 27, 2026 @02:37PM (#49469288)
https://en.wikipedia.org/wiki/EMac

Setting up a keyboard replacement is the way to go here. Solves the issue for all devices.

Re:Emacs 31: An unofficial guide to Markdown-ts-mode by remedan on Thursday August 27, 2026 @10:26AM (#49465442)
Agent Shell connected via ACP to local Claude Code.

https://github.com/xenodium/agent-shell

Re:Emacs 31: An unofficial guide to Markdown-ts-mode by wilkystyle on Thursday August 27, 2026 @10:30AM (#49465514)
Can't say enough good things about agent-shell.el! Xenodium has done amazing work there.
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by bryanlarsen on Thursday August 27, 2026 @10:46AM (#49465755)
I'll have to try it again. It definitely feels like the right way to do things, but when I tried it it had a couple of show-stopper limitations and a show-stopper bug, so I've been using claude-code-ide.el instead.
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by aag on Thursday August 27, 2026 @11:15AM (#49466210)
I'm a huge fan of agent-shell, too. It keeps getting better and better, and it's infinitely customizable, like any good Emacs package.
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by xenodium on Friday August 28, 2026 @04:39AM (#49476007)
Wonderful to hear. Thank you sir!
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by mplanchard on Thursday August 27, 2026 @07:18PM (#49472512)
Seconded, agent-shell is my favorite LLM interface bar none
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by iLemming on Friday August 28, 2026 @04:16PM (#49483681)
Have you tried https://eca.dev ?
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by mplanchard on Saturday August 29, 2026 @07:47PM (#49494326)
I haven’t! It seems akin to ACP, is that accurate? Do you recommend it?
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by iLemming on Saturday August 29, 2026 @08:34PM (#49494572)
No, ECA doesn't work like ACP, it's provider-independent and operates similar to an lsp-server. It is in fact, written by the maintainer of lsp-mode and author of clojure-lsp.

I've tried many different tools for AI tasks in Emacs, eca and gptel remain the bread-and-butter of my workflows.

Re:Emacs 31: An unofficial guide to Markdown-ts-mode by banjomonster on Thursday August 27, 2026 @10:47AM (#49465774)
I’ve been using gptel, I’ll have it generate org babel blocks I can tangle (write to files) or have it use tools to write and edit files in the project I’m working in, and then review with magit.
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by sebastianavina on Thursday August 27, 2026 @11:09AM (#49466122)
I use windows 11, wsl2, WezTerm.

emacs -nw directly on the shell.

its like working on a linux computer, but from windows.

I run vterm inside emacs, and claude code inside vterm. I have special commands for extracting file routes, and flow between dired and magit. Everything runs like magic.

I also have copilot-chat and copilot-mode installed. From time to time I use it to review what claude has done, or to chat a little bit.

Re:Emacs 31: An unofficial guide to Markdown-ts-mode by scoops_ on Thursday August 27, 2026 @01:24PM (#49468198)
I’m trying to use a similar workflow, but when I attempt to use Claude code in vterm, I have issues.

My use case is resuming a session and not being able to scroll back to the past history. Otherwise if I start a new session, it works fine.

It’s probably related to me being on an old version of vterm, but I’m just wondering if you ever have come across this.

Re:Emacs 31: An unofficial guide to Markdown-ts-mode by suprfnk on Thursday August 27, 2026 @02:19PM (#49469042)
Definitely try ghostel, it's really solid.
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by scoops_ on Thursday August 27, 2026 @03:01PM (#49469625)
Thanks, I would, and I’ve used it on my personal machines (it works great), but I’m trying to stick to the apt package repos on my $WORK machine.

Ubuntu has a fair number of elpa packages in its repos, so I’m trying to make it work if possible. Not sure if I’m missing anything config wise within the confines of vterm

Re:Emacs 31: An unofficial guide to Markdown-ts-mode by scoops_ on Thursday August 27, 2026 @05:22PM (#49471438)
I found my answer, I needed to be using page up and page down keys to “scroll” through the claude history - which is apparently required due to Claude capturing my C-v and M-v’s in its “text-box”.
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by bryanlarsen on Thursday August 27, 2026 @10:49AM (#49465803)
IMO, generative coding on Emacs works nicely because magit is awesome for code review. A good agent integration package is going to have a command you can use to send the current cursor line & file to the agent so you can reference and comment.
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by kreyenborgi on Thursday August 27, 2026 @10:23AM (#49465389)
Which AI coding package? Agent-shell? Gptel-agent?
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by edgyquant on Thursday August 27, 2026 @11:03AM (#49466034)
It’s just called ai-code I’m new to eMacs so this popped up but had a bunch of issues I was trying to debug https://github.com/tninja/ai-code-interface.el
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by internet_points on Thursday August 27, 2026 @01:29PM (#49468267)
Never heard of that one. The most popular ways for agent stuff seems to be https://github.com/xenodium/agent-shell , or just opening a terminal in emacs and using claude code. If you want to run it through an emacs terminal, consider using https://github.com/dakra/ghostel#ghostel (or vterm, or eat)
Re:Emacs 31: An unofficial guide to Markdown-ts-mode by mplanchard on Thursday August 27, 2026 @07:19PM (#49472520)
Thanks for posting the ghostel link, I hadn’t heard of it. Excited to try it out and see how it compares to vterm