Automagic paste mode toggling