What is Nostr?
tacosandlinux /
npub12pq…75fq
2024-05-30 13:05:36

tacosandlinux on Nostr: I have been hacking building a custom #TRAMP mode lately. I've been failing miserably ...

I have been hacking building a custom #TRAMP mode lately. I've been failing miserably but it's been fun. Basically, I want to do a custom TRAMP connection to my WSL environments.

I'd been using the #Podman TRAMP mode effortlessly in #windows11. It's very helpful that it just works and I can enter containers with #Emacs even on a windows system. I got thinking why can't I do the same with #WSL?

You can access WSL from #powershell or cmd with a command like so:

wsl.exe -d Ubuntu-22.04 --cd "~" -e bash -i -l

Everything that I need write a custom TRAMP mode seems to be there. I tried reading the tramp.el to see how they do it for containers. But still fell a bit short because TRAMP seems to be missing something. I guess if anyone has experience writing custom TRAMP modes can give some #advice, #help, #guidance I'd really apprieciate it.
Author Public Key
npub12pq3p3jvj3apr29fhetw5lw3z4x2y3ryyqry7n4l6cejn88qumls4w75fq