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.
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.