Made keymap activation buffer-local instead of global.