Ok, it's been a shit day. Really desperate for any advice:
hospital lac cons and community midwives saw me briefly in AM. Said he was mucusy and that he may not be aware he needs to eat. They were busy and had to leave, told me to keep trying to feed for one hour. Ward midwife then came round and said I could keep trying to bf (he was still refusing boob, crying, wouldn't latch), or give a cup of formula. By that stage was 9 hours since he had eaten so I said give him the formula, was feeling desperate for something different. Baby blood sugars were all fine, but has urate crystals, paediatrician said was likely bc a bit dehydrated.
He still refused to latch after that, didn't vomit up mucus either as lac cons had suggested. Hospital ward was still busy and shitty, I was feeling worse and worse (would be 40 mins before ward mw could see me). Hospital not keen for me to go home if bf not well established, understandably. But only option by staying in was to try wrangle mw help if I could each time I tried to bf.
Felt desperate and upset (baby still not latching at 2pm, but crying (tantrums, full on screaming and clearly hungry), my staunchly pro-bf MIL said perhaps best to get home to calmer environment and supplement with formula and hopefully get more help from community midwives and find a private lac cons the next day, as being in hospital further was of no help.
He had 30ml of formula in bottle at 3pm and totally guzzled it, slept contentedly for a couple of hours, we went home. Friends sorted out a steriliser, formula, Medea pump & bottles etc for us and brought them round.
At 6pm he latched on boob quite well for about 40 mins each side, until eventually getting frustrated and crying.
At 9pm he refused boob, in same way as it started in early hours of the day. After 30+ mins trying on boob we gave him 20 ml formula.
He slept a little bit between 9 and midnight , I slept for a couple of hours.
At midnight with our best efforts at spotting feeding cues tried bf again, same refusal/screaming, he also refused formula.
He is only settling/sleeping on my chest (there right now). He makes nuzzling motions at times but then won't accept boob. My only plan right now is to try bf again if he makes reality obvious cues in next few hours or to try formula again soon. 
He is not really giving many clear feeding cues and is not demanding food (until he gets really upset like before we gave the first bottle at hospital). There are lots of gurgly/ indigestion noises coming from his tummy all the time. Today he has had 4 meconium poop nappies. Some urate crystals too, but one huge wee over himself while he was being weighed too
he spits up mucus now and then too.
I am so exhausted, my baby won't eat, what am I doing wrong?? What should I do next? My milk is starting to come in too, it's even harder for baby to try latch 
Please please help 