Make variables buffer local, and removed the keymap