The author of "the power of habit" says habits always start with a cue, and that when we find ourselves behaving in a way we want to stop we should make note of what was happening when we felt that urge. Like when you meditate and you notice yourself thinking. Taking notice has some power.
about 19 hours ago