# How to disable the org-mode in a buffer

For a test purpose, I enabled the org-mode by M-x org-mode in a buffer (e.g., in scratch buffer). How to disable it? Doing again an M-x org-mode does not turn it off.

• How about replacing it with the desired mode -- M-x fundamental-mode? See also the contents of the function fundamental-mode -- i.e., (kill-all-local-variables) (run-mode-hooks). I take it a step further and remove overlays, and I remove text properties, and some other stuff -- see: emacs.stackexchange.com/a/12527/2287 Mar 3 '17 at 6:14
• This is no doubt a duplicate of other questions about "turning off" a major mode, but I don't have time now to hunt for a duplicate.
– Drew
Mar 3 '17 at 6:34