A friend once gave me this advice:
"I work all the time. Day, night, weekends, all the time. Sometimes my wife will want some time with me, just to talk. But since I’m always busy, I’m usually at my computer when we have our conversations. What she’s noticed is, I only half-listen when I’m doing that. I’m splitting my attention between her and my laptop.
"This hasn’t been good. I could tell it was affecting our marriage. So I resolved to shut the lid of my laptop whenver she wanted to speak. And I’ve been doing that. It hasn’t been easy, let me tell you. But I’ve been trying."
I'm getting married soon and have been conscious of this issue as well. I've also found Meg Cadoux Hirshberg's column in Inc. Magazine to be insightful:
http://www.inc.com/author/meg-cadoux-hirshberg
Good luck!