Factorio Autopole
Autopole is a mod that automatically connects a pole when you place it to the nearest available pole.
Usage: to make the poles connect press shift while placing a pole to place it in the ghost mode - that will make the mod do it's job.
stdlib from: https://github.com/Afforess/Factorio-Stdlib