【求教】如何判断当前某个模式是否启用?

  • 对于major mode,用derived-mode-p
  • 对于minor mode,直接检查同名变量是否为真