AC is used for power transmission because you can use transformers with it. Transformers can supply the same amount of power while reducing the current. Reduced current results in reduced power loss during transmission.
DC is used for electronics because they use electricity for logic, not just power. If you tried to run a digital logic circuit with alternating current, you'd have to deal with the binary bits flashing back and forth between 0 and 1 with the cycle of the current. The mains voltage is also too high for transistors. Different transistors like different voltages, but usually around 1 to 5 volts. The answer about DC being used for portable electronics because it can be supplied by batteries is also good, but even non-portable electronics like desktop computers and video game consoles use DC.
With the expanding presence of DC, it would probably make sense for homes to be wired for DC. It would still be transmitted over the power lines as AC, but converted as it enters your home or somewhere in your neighborhood. The problem is that would require a change of standards, and standards are slow to change, because it's hard to accommodate both the old and new standard, and hard to get everybody to upgrade at the same time, particularly since it would be impractical to completely rewire an existing house.