Set and Setting are also relevant too. If you do it a soecfic way with other soecific tools and activities while on it, that all gets packaged and reinforced.
As the other comment says: set and setting. And it works both ways, you can take some memento with you, and when you're being quiet and introspective and you're feeling good fondle some fob: a keychain, a rosary, buddhist prayer beads, some macrame you're working on, it doesn't matter. Point is later when you're in a different situation, you can replay that ritualistic behavior and it will probably reach in and remind your body, which will then remind you mind. This is human nature: it's known that e.g. humans remember / forget things when passing through doorways, and some forms of acting use cues like this especially for emotional resonance.
Going on an actual calorie restricted diet while consuming cannabis is basically impossible for me.
Then instead of walking 60 minutes I end up sitting and listening to music.
There is really not anything for me that correlates with healthy behavior when I smoke.