How to transfer preferences from one machine to another?
The easiest way to do this would be to use Migration Assistant.  If you transfer your settings  when you first setup your Mac, you can run the Migration Assistant to transfer the settings for you.

Directly from Apple:  OS X Mavericks: Transfer your info from a computer or disk 

I went with Mavericks because it is fairly recent and the procedure is the same in Yosemite.