Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defadvice switch-to-buffer (before save-buffer-now activate)
- (when buffer-file-name (save-buffer)))
- (defadvice other-window (before other-window-now activate)
- (when buffer-file-name (save-buffer)))
- (add-to-list 'focus-out-hook (lambda () (save-some-buffers t nil)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement