it goes even further in stating that every time you link emotionally to a thought the there is a hairlike connection made in your brain that is wiring you to think the same way in the future and the thought is that by being aware of what you think and how you "program" your mind you can set healthy connections and remove unhealthy connections.....
Actually this is quite true. We did a large section on neural connections last semester (I'm doing Bio Med, but - that being said, I'm a student so don't take anything I say as a sure thing hehehe).
You know when you dream? It's actually your brain ordering information from your day to associated places.
So for example, let's say today you went horse riding and a friend told you a story about a girl teaching her horse to jump better by leaving a bale of hay on the other side of the jump (yes, this is a ridiculous story, but stay with me).
That night you (may or may not remember) but likely you will dream about something involving a horse and a bale of hay (side note: This is not the only reason you dream, but it is definitely a big part of it).
This is in fact your brain going 'Ok, we need to move this out of short term memory and put it away for safe keeping, where should it go? We will put it over here with her horsey knowledge!' and it forms the connection there.
So, the next time you're thinking about training a horse to jump your mind hits this connection and goes 'Hey, remember that thing about the hay?'
Obviously, it's a little more complicated but this is the general idea. This is also why females find it harder to break habits than men as they form a greater number of connections on average (ie. men quit smoking easier). But I think the rule is, if you change something for 30 days your brain will re-associate the information.
So if you made a concerted effort to live you life how you'd like to by habit for 30 days, you will find it comes to you, almost, like second nature after that.
My sister trialed this theory and is now a generally very healthy eater because it's second nature for her to WANT the salad sandwich rather than the burger and fries.
Sorry...hahah that was a really long winded explanation...that possibly made no sense, but hopefully there's something useful in there!