buffer-offer-save

buffer-offer-save is a variable defined in `files.el'.
Its value is
nil

  • Automatically becomes permanently buffer-local when set.

Documentation:
Non-nil in a buffer means always offer to save buffer on exit.
Do so even if the buffer is not visiting a file.
Automatically local in all buffers.

You can customize this variable.