Negative thinking,caused by a cognitive distortion,results in negative emotions.Be aware of such distortions so that you can get rid of them.
Read this post on jeeteraho.blogspot.com