A while back I wrote an article on saving buffers when they lose focus.
Recently I’ve packaged (an improved version of) this functionality into a tiny global minor mode called super-save.
The package is available on MELPA and MELPA Stable and enabling it is trivial:
If you want to enable the additional feature of auto-saving buffers when Emacs is idle, add the following as well:
If you’re like me and don’t care about the backups created by the
auto-save-mode, you can disable it aftewards:
I’ve been using Emacs for over 10 years now and I’ve never needed the auto-created backups - I’m either very lucky or this is less useful than it’s supposed to be.