6

How can we configure emacs to automatically save the unsaved changes every 5 seconds? I want the save the buffer and not the temporary file generated with ~

18bytes
  • 5,951
  • 7
  • 42
  • 69

2 Answers2

6

In ~/.emacs file make following changes.

(require 'auto-save-buffers)
(run-with-idle-timer 5 t 'auto-save-buffers) 
specialscope
  • 4,188
  • 3
  • 24
  • 22
1

change the auto-save-timeout's value affects the number of seconds idle time before auto-save.

using (setq auto-save-timeout 5) may solve your problem

cfy
  • 401
  • 3
  • 13