"Generally" if you are only using microswitches you should be ok from an electrical noise point of view but shielded to ground (not negative of a PS) and wires up the middle (negative, positive and signal for proximity sensors if you are using them) is what you should be doing. That said if it is a small one like a 3018 (small DC spindle) or a 3D printer then don't stress to much about the shielding.
If you want to use connectors then DIN style (metal bodied) would be a much better alternate over the 6.5mm and as in the previous post no chance of getting a contact you don't expect when plugging in or out. I picked up a used 6090 Chinese router a few months ago WITHOUT limit switches
and it came with empty holes on the case so I will be doing the DIN thing in the back of the box when I get to it. While I have some spare proximity switches more likely I will just go with longer lever type micro switches on this one.
I might consider putting some copper sleeve I have left in stock over the Spandle
wires to ground as the cheap and cheerful inverter is bound to be noisey.