Emergency funding is not a simple matter.
Most suggestions start with $1,000-$2,000, so the little unexpected expenses don't add to your credit card debt. This would be things like a heater repair (my starter just went out, the element that gets the fire going. $500. Ouch) or appliance failure. This level isn't enough to address anything like a layoff.
Ideally, you have a grip on what your expenses are each month. Every last item. 6 months of that is the minimum for a well planned EF. No, you might not find work in 6 months, but at least you're not tapping high interest credit cards after the first mortgage payment is due.
I'd suggest that having that 6 months' expenses makes little sense if you also are paying interest at 20%. Killing the credit card debt is high on the list as far as I'm concerned. Perhaps second only to making sure you get the matched 401(k) money if offered by your employer.