I haven't started riding yet, got a bike on layaway, but it can apply to walking as well. I play nice, loud, upbeat music on the way to work. (I only keep one bud in so I know if cyclists come up behind me.) I also try to sort of walk meditate, just enjoy the commute itself. If you view it as something you have to do, you won't want to, it's how humans are.