Change the ansi-term/yasnippit hook.