If your're on Windows 10 you could've used LSW (Linux Subsystem for Windows), on older Windows something like Cygwin. When I have to use Windows for work, Cygwin is amongs the first things I install (actually I found a Cygwin derivative called babun pretty good, unfortunately I think it's now no longer maintained). I use Vim rather than emacs, but emacs works well too.