Unfortunately, there is no definitive answer to this question. We're all different, and we all have different issues that we bring to food.
Usually changing these unhealthy patterns must involve a dramatic evolution of most aspects of your life. Your life as of right now supports these unhealthy behaviors. Your daily life patterns and habits, your environment, your relationships, your perception of pleasure and happiness must evolve along with your diet, IF you wish to sustain good health.
The fact is that you can be very healthy and consume cookies, cake, etc. The trick is these foods need to make up a very VERY small portion of your total daily calorie intake. As Dr. Fuhrman states, optimum health is achieved and maintained by a diet that is mostly made up of leafy greens, veggies, fruit, beans, nuts, seeds and whole grains.
So many of us struggle with finding a balance between our emotional connections to food and our true physical need for food. Everyone indulges in less than healthy choices from time to time, but making nutrient-poor food a staple of your diet damages every aspect of your health.
Emotional eating is so difficult to give up. It is a habit, perhaps an addiction, that helps you deal with the stresses of every day life. How you live is entirely in your hands. Whether you choose to live your life as a healthy person or an unhealthy person is entirely your choice. Feel your power and make a choice.
Here are some links that might help you on your journey:
sparkpeople.com
http://www.drfuhrman.com/
http://www.loveboxboutique.com/blog/health-beauty/10-ways-to-stop-emotional-eating-now/
http://www.doctoroz.com/videos/tips-stop-emotional-eating