Maintain a healthy balance in life. Read fiction, listen to podcasts, go on long walks, chat about non-technical things over coffee/lunch everyday. Oh, and get ample sleep. Beyond that, it's creature comforts around your desk: a good coffee machine, a sitting+standing desk, good natural lighting, a whiteboard, a scratchpad, a relatively new iMac.
Habits are easy to create when it's convenient to have them. That's mostly what I'm pitching.