This is both the key and the crux. I have some mental health issues around food and exercise which I've done a lot of work on and made big improvements with, but I also need to get to a better weight too.My long term aim .... get into healthier eating habits.
I really can't be trusted around sweets/cakes/biscuits/crisps or buffets! Luckily alcohol has no place in my life so that's a non-issue, but I really need to treat the above foods like an alcoholic would treat booze and avoid.
I've found limiting sweet stuff to 'fuel' on rides has worked quite well though. But crisps are my nemesis.
Tracking properly via MFP or similar can be a total eye opener if you've never done it. You can really see where you could have made much better choices to have more volume of food, cut out empty calories from things like crisps, or allow for things like a meal out. I'm back on it, it seems to really help me see what I'm doing.