What's the best way to transfer your Mac's system config to a new Mac?

I've had my MacBook Pro for almost 5 years, so I'll probably purchase a new one in the coming months. Over 5 years my computer has my system setting, dotfiles, and other config just how I like it. Is there an easy way to port all of this to a new Mac?