`focus-autosave-mode' is a global minor mode saving every modified file when the Emacs frame loses its focus. `focus-autosave-local-mode' is a buffer-local version of this mode. Currently there is no way to exclude some buffers from the global version.