When I used to use emacs to write code I did this, but it would be great if I could use tramp instead, unfortunately the latency is unbearable.
Also, when compared to neovim, the latency for auto-completion (with LSP as a source) is also unbearably slow. Even with libgccjit enabled.
Now I only stick with emacs for org mode. Maybe I'll try it again, but neovim is just faster.