I keep a bar of my favorite locally made dark chocolate in my cupboard and have calculated what a little square of it is calorie-wise, so when the cravings hit I can decide to have a piece and savor it, eating it slowly. Usually with a cup of tea or coffee or with a few almonds for "dessert." I have found that by having it on hand, in a tin in my cupboard, I do not work up the emotions that can come from not having it available at all.
Selecting good chocolate is important; I buy a variety of dark chocolate bars processed locally which are really fresh. Since I have been doing this, I do not even desire "over-the-counter" chocolate, candy bars, etc. like in the past. ( I used to be a Snickers junkie.)