Treat negative emotions like negative people. Acknowledge their presence and make whatever changes are required to remove them from your life.
One habit we must all develop is choosing to fight the negative aspects of our lives including being unproductive with positive habits while we are in the moment. Instead of not being able to sleep in order to gain energy, and thinking negative thoughts before finally falling asleep eventually, we should put our mind to use doing something productive and something that promotes positivity throughout our lives.
Instead of hanging around people who only speak negatively of others, and who have no ambition or focus, we must choose to surround our selves with people who are going places, and who are willing to be honest with criticism, but only criticism that is constructive and that promotes growth in a person's life. Never let your mind become idle and just begin to wander and worry about the things that are problems in your life, instead use that energy to do better, and to combat the problems in your life that you have to face.