Karthik's notes on Emacs Chat 24: Omar Antolin Camarena (opens in new tab)
Here's a guest post from in response to . M-x scratch will open up a scratch buffer. If you had a region selected, that will be copied to the scratch buffer. By default, it will use the same major mode as the buffer you calling it from. Calling M-x scratch with a prefix arg will let you pick the major mode you want. I have some additional customizations to try to automagically pick a major mode based on what I have selected: Also related is the edit-indirect is for editing the source (exactly...
Read the original article