I'm in the same boat, though I'm just an undergrad. Three more weeks, then finals. Home stretch!
I'm also on campus for approximately twelve hours each day. I make sure my lunch is appetizing and convenient for me to eat. I tend to 'reward' myself with food (which works for me but may not be best for everyone), and punctuate my study breaks with nibbles of my favorite things to eat.
I should also preface this by stating that I am a higher-carb Paleo, and eat about 150-175g a day with no ill effect.
First off, I have to bribe myself to get out of bed. That typically consists of a high-protein/fat meal with a banana with almond butter for "dessert". Yes, I look forward to my daily banana, and I do use it as motivation to throw off the covers and start yet another dreadfully stressful day.
Currently, I'm able to cram about 1000-1200 calories into a handful of food, which is easiest for me. It's delicious, high-fat, and very filling. Currently, my backpack is stuffed with: a Larabar (cashew cookie is my favorite), an ounce and a half of cashews (what? I like cashews!), four squares of 85% dark chocolate, some low-sugar beef jerky or a sachet of tuna or salmon (the no-drain kind), and if I'm in the mood for it, a couple of small plums or an apple or something.
I devour the Larabar in my Stats class (the sugar helps keep me awake, honestly) and after math, I move into the library to study for a couple hours before my next class. The food is easily consumed in the library (unless I pack fish, then clearly I take that outside) and because I enjoy it so much, I'm both physically and emotionally satisfied by it.
Because I get home so late, dinner is typically a dish of veggies and some protein, and yes, more dark chocolate.
I'm not arguing that this is terribly healthy, but it's much better than bingeing on cookies or ice cream (which I am wont to do when I'm anxious, overwhelmed, and famished) and I don't feel the urge to devour copious amounts of unhealthful things, either, because I'm eating exactly what I want. I also keep lots of my favorite teas around to sip on to keep my mouth busy when I do get the urge to stuff my face when no longer hungry. I'm currently sipping some Candy Cane Lane, which I adore.
Anyway. I rambled here. Sorry!
TL;DR: I eat yummy, high-fat things when under duress and it keeps me from bingeing on things that make me sick.
Good luck, Caleb, with the end of the semester! You're almost there. You can do this! :D