You want food that can be eaten unheated, all the better if it's not in cans so you don't need a can opener. Get some biscuits or crackers, some canned meat (corned beef or tuna), and canned or dehydrated vegetables (soaking them works well enough). Dehydrated potatoes are also light and compact, and provide good energy. Chocolate is also a great compact source of energy, and lasts for a long time. Grab some muesli/granola bars as well for eating on the go.
A standard tin of corned beef will last a couple of days. A mixture of corned beef, dehydrated potatoes, and dehydrated peas will keep you going for a long time. I've eaten a pot of it all mixed together and gone until the evening eating hardly anything while climbing mountains.
As for water, you'll want at least 2 litres per day, and you'll want to rotate your stock every 6-12 months as water does go stale.
If you want to set yourself up for longer term, I'd suggest getting a gas cooker or something to cook on, and then you can also boil water to get clean water. The alternative for long term water is iodine or other purification tablets, but they taste nasty.
Apart from food, you'll also want to keep some medical supplies: bandages, sling, tape, gloves (these are important!). Toilet paper is also essential.
You'll want to keep all this stuff in a box or bag that you can easily grab and get the fuck out. I live in an earthquake prone area, so it pays to be prepared here.
Peanut butter is about 2x as calorie dense as canned meat (and it tastes good and is going to be more nutritious than cheap canned meat).
Canned meat (especially tuna) is a good source of protein, which peanut butter doesn't really provide. There's also a moral effect of eating meat. You could just stockpile a few boxes of muesli bars, which are calorie dense, but you'd get pretty upset with eating them after a day or two.
Even the Army realises this, and attempts to give variation in their MREs and in their First Strike ration packs. You could feed a soldier on a fat/sugar/vitamin/fibre mix, but you'd kill their morale pretty damn quick.
I looked in the cupboard. Tuna, which is almost just protein and water, has 17 grams of protein in a 74 gram serving. Chunky peanut butter has 7 grams of protein in a 32 gram serving (http://www.jif.com/products/extra-crunchy-peanut-butter).
The tuna is 70 calories. The peanut butter is 190 calories (it has quite a lot of fat in it).
Searching online, canned ham appears to be ~100 calories for 50-some grams, with 10 grams of protein. Spam compares to the peanut butter, with 180 calories per serving and 7 grams of protein (http://www.spam.com/varieties/spam-classic).
So by mass, the peanut butter does a pretty great job of supplying protein, and it comes with a bunch of calories too. Oil packed tuna would do better with the calories, but I find it off-putting.
edit: Here's a link for tuna:
http://starkist.com/products/chunk-light-tuna-in-water-can
It's a different product than I looked at, but close enough.
The harder part is water, as just a few days worth of drinking water for one person can take up a huge amount of space.
Eh??? A generally "comfortable" minimal budget for water is 1 gallon per day (3.8 liters, call it 4), although you might need more on hot summer days. A 5 gallon container is, with all the plastic and features for stack-ability, going to take up less than a cubic foot (19,000 cc).
It's not compact like food, but it's pretty easy to store enough so that you can ride out a short disaster and pick your time to get more for a longer one.
Here, if I run out of stored water, along those lines I need purifying capability, such as coffee filters for coarse filtering, then any one of a number of chemical methods, e.g. plain household bleach, or a serious small pore filter such as Katadyn specializes in.
Hell, I go through only about 6 litres of water a day while climbing mountains in the summer.
Remember that food also contains water when looking at minimum intakes.
And I like to brush my teeth....
If there was really a problem, my main concerns would be water and power.