Good for you. I also used to eat because of boredom. I think I was afraid that if I was bored I would start thinking about things that I have been avoiding thinking about. What I did was let myself feel bored but not try to feel better by eating. Eventually the feeling of boredom went away. I still get bored sometimes but very seldom.
Overeating is a way to not think so much. If you eat fatty food, your mind slows down and it's difficult to think for a while. This is because a large part of the blood in your body has gone to the stomach to break down the food. I switched to a vegan diet and just worked on letting myself feel what I have been avoiding. I believe that many people who are overweight have emotional pain they have not dealt with.