Timeline for How can a function check which major mode is enabled?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 26, 2021 at 22:03 | vote | accept | M0M0 | ||
Nov 26, 2021 at 21:20 | comment | added | Fran Burstall | Edited to give such an example | |
Nov 26, 2021 at 21:20 | history | edited | Fran Burstall | CC BY-SA 4.0 |
Example added per OP request
|
Nov 26, 2021 at 20:57 | comment | added | M0M0 | Could you give an example of a function that executes a function foo if the major is foo-mode and executes bar if in bar-mode? | |
Nov 26, 2021 at 20:35 | history | answered | Fran Burstall | CC BY-SA 4.0 |