set scratch buffer to text-mode