如何判断当前 buffer 是否处于一个 major/minor mode 中?