I use an app called Tasker. With it you can specify that when charging, the phone should go into silent mode, set no vibration, take a photo or call your aunt. It's not free though. My main use for it is to turn off auto sync when I am not connected to a wlan.
If you want to buy it, it's 50c or a $ cheaper to buy directly from the developer.