I had a gassy little guy too. Some things which helped were good nursing positions to eliminate him taking air in (you want baby to have a really good latch and be supported way up on the breast, and this can be hard on your back, so use lots of pillows or a Boppie) and I stopped every so often to burp him.
I am already lactose intolerant myself, so dairy was limited to goat's milk products. I also avoided brassicas (broccoli, cabbages, cruciferous veggies) which give a lot of gas as well as onions and garlic, too.
You might try administering some 'gripe water' to him via a syringe, but check with your pediatrician as to how much to use. I also did the the 'bicycle the legs' things *before* he typically got fussy with gas.
It could very well be something you ate. If you were feeling social and nursing while chatting, it could be that he got a little more air in his stomach (I noticed I was less focused on nursing when my attention was on others). Hard to tell. We also took our son to a craniosacral therapist/pediatric chiropractor when he was two weeks old and then once every couple weeks for the first several months. That did seem to keep him in fairly good health.