Sometimes people eat a lot, or eat poorly out of pure boredom. Nothing else to do than to eat ice cream and watch a movie, or eat these snacks and play on the computer, or there's cake in the fridge and I have no plans for tonight so cake will be my date.
I read a startling statistic about how seldom people read books currently. Instead of eating out of boredom, read a book out of boredom. Kill two birds with one stone, educate yourself and at the same time get healthier with your eating habits. Reading isn't the cure, it's just another example of something productive you could be doing besides eating.