-
-
Save tzz/2598d84c4bc3ece66c3d5933a4379844 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun save-all-buffers () | |
"Unconditionally save all modified buffers." | |
(interactive) | |
(save-some-buffers 1) | |
(message "All buffers saved")) | |
(add-hook 'focus-out-hook 'save-all-buffers) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment