Add set-buffer-mode API
Clean up C-l keybind code