Rewrite global bindings to minor mode bindings