Replace a bad habit with a good habit. When I'm at home I exercise for fifteen minutes every time I feel the urge to smoke.
My mother has always eaten tons of salt so to avoid the same pattern, I try combining different and new spices to add flavour. It makes meals more interesting and breaks up the usual routine. Now, I never add salt when I cook or eat, and I don't miss it.