Skip to main content
2 of 2
edited tags; edited title
Drew
  • 79.1k
  • 10
  • 123
  • 257

How can a function check which major mode is enabled?

The accepted answer to this question says:

When the function is invoked, it can test the current mode and do something appropriate. For example, for some modes, or all modes except some modes, it can be a no-op or it can raise an error.

How can this be done?

M0M0
  • 143
  • 5