You sound like me. I use to do the same thing. When I got upset, I ate. When I felt blue, I ate. When I was bored, I ate. Just give me a reason and I ate. I am an emotional eater. I'm learning to not let my emotions control what goes into my mouth. When those moments come up do something else like exercise, go for walk, clean your car out...anything other than grabbing for that cookie or ice cream. I have had many times when after thinking ot myself "your fat!" I got depressed and ate everything possible. I wonder why we do this to ourselves? It is such a self-defeating behavior. Another thing is you might want to avoid fast food, I know its convenient but mostly unhealthy. I have cleaned my cabinets of all the UGLY foods and stocked up on healthy ones instead. If I want to pig out now, I eat an apple, carrots or cauliflower w/low-fat dip. You have to change the way you think about food. You have to make a lifestyle change.
I have always said food is more addictive than drugs because you have to have food to live, but not drugs. You are doing great, just hang in there!
