In the Mac manual there should be a section on settings, program and file transfer from your old mac to your new mac. I've done it once. it requires a double ended usb cable or the use of an adapter. I used a firewire cable which is not supported anymore. My information is a few years old, things may have changed but I doubt.
good luck
good luck