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

How can a function chekcheck which major mode I'm inis enabled?

Source Link
M0M0
  • 143
  • 5

How can a function chek which major mode I'm in?

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?