bind switch buffer by major mode and ext name