Hey brother good to hear that you are getting back on track! Nothing to be ashamed of, we all abuse something sooner or later; whether it's drugs/alcohol/girls lol
Getting back in the gym is probably the best thing to keep you distracted, and I think once you start seeings results again that will be plenty of motivation.
I think you should definitely start by securing a good diet, like you have done in the past. You know, cut out starches and sugar, lots of protein through out the day and at night. Just like you probably did before, limit your carbs to mostly morning intake. I feel like once the diet is consistent, everything else falls in place. Im not a trainer and I have very limited knowledge on calorie limitations, but I believe in doing what feels right for you. Talk to a nutritionist to figure out exactly how much to eat.
Instead of finding pleasure in food, turn your body into a mean fat burning machine it once was. Set goals and activities for yourself brother: heavy lifts, long late night runs around your neighborhood, grilling pounds of chicken on the weekends, buying fresh new clothes you wanna wear comfortably, get a nasty Ipod playlist that really gets you going, start a blog/diary on this site, etc the list goes on
YOU know how to get it done, because you have done it before. I got faith in you my dude.