Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
arnavsharma93
· 9y ago · 0 comments
For people using Emacs looking for autosave.
(add-hook 'focus-out-hook (lambda () (save-some-buffers t)))
Comments
[–]
gkya
9y ago
This is not autosave, this saves open buffers, and may cause saving changes you may have wanted to discard. With non version controlled files this may cause data loss/corruption. See "Auto Save" in emacs manual instead.