Sounds like you got your thinking right. Some of my additional habits:
Never walk around with your hands in your pockets,
When loading up into a vehicle in public, let all of your passengers get in and shut their doors before you begin getting into the car,
Lock your door immediately after opening it,
Most of staying safe in public is not presenting an easy target to criminals. If they know your aware and you don't present them with an advantages situation, you may reduce your chance of being a victim. If not, then by being aware and maintaining a strong stance in you environment by utilizing your brain will give you a greater opportunity to defeat an attacker. Obviously my main area of concern when in public is parking lots, specaily at night, few witnesses, many escape routes for and attacker, and lots of ambush locations. But staying out of 'dodgy' areas is a big one, and if you got to go to the store or run errands, try and do them during the day. But obviously you can't let fear of attack control where you travel and when, so stay safe.