Add support for beautifying scratch and dirty buffers, without requiring saving to a file