How to recover from bed without gaining a restictive eating disorder

How do you not become obsessed with calories? How do you get a healthy relationship with food????