Good habits are something that you can train yourself to use. Everyone has a "little voice" inside themself telling them what is right and what is wrong, so you already know what things are good. The way to keep doing the right thing is to practice it. Get into the habit of mindfulness - this is the mental attitude of being aware of the world around you as well as the world inside of you. Be aware of your emotions and thoughts. Be aware of what you are seeing, smelling, hearing, touching, and tasting. Mindful people are more likely to do the right thing simply because they are paying attention to what is going on around them. When you catch yourself doing something that you know is not positive, stop yourself and make an effort to change that behavior. It takes about three weeks to completely break a bad habit and substitute a good habit in its place. After that, though you might "slip" and use an old habit occasionally, the new positive habits will be part of your behavior.