I consider it to be a very important aspect and ever since I was little I generally refused to eat if I was feeling angry or someone pissed me off at the table.
One book I recently read mentions this interesting points:
"When you eat, do so with an eye single to the purpose of getting all the enjoyment
you can from that meal; ..."
"NEVER eat until you have an EARNED hunger, no matter how long you go
without food. ..."
(Gary Brodsky - Art of Great Health)
Isn't that from The Science of Being Well by Wallace D Wattles? To lose weight? For example don't eat when you wake up, because you've done nothing to earn food yet. At a time I feel I was addicted to eating shortly after I woke up each morning, I felt a strong urge to eat. I was overly thin though, and trying to gain at least muscle, if not some fat too. When I started eating better food in a better place, those problems disappeared.
In Ayurveda, people of Kapha dosha, in other words people who are able to become fat, are directed not to eat more than fresh fruit in the morning, if anything, as their digestion is slow, and they likely still have dinner in their stomach.
When I was little I was never really happy, and I never wanted to eat. I really didn't want to swallow or even taste anything. I felt ok that way, even though food at home was good. On the rare occasion of visiting other people even the food not being as good quality, I ate, no problems swallowing. I don't think it was the food. I think it was the people's attitudes around me. I am sensitive to the way others in my presence are with me. Or maybe it was because I knew home, so didn't need to eat to learn anything, but at other people's homes there was something new to learn, hence needing food to facilitate that, IDK.
I don't think I ever got angry as a child. Maybe other people would have gotten angry, but I kind of understood everyone from their points of view, so I found no reason to be angry. I guess spiritually I was in everyone's hearts, but not in myself. I astral traveled a lot too and knew before people would die. I guess that sounds spooky. There was little I bothered wanting, and then not for long, not that things were fulfilled.
But yes, I find attitude important in some ways in eating and healing. I've seen people on some of the best diets, and good attitudes seem to go along with eating well and healing, while deficient attitudes seem to go along with deterioration, no matter the quality or combinations of the food or the people around.