Skip to main content
edited title
Link
b4hand
  • 2.1k
  • 1
  • 22
  • 31

How to auto-save buffers when Emacs loosesloses focus?

grammar and tags
Source Link
Malabarba
  • 23.5k
  • 8
  • 82
  • 168

How to add an auto-save feature tobuffers when Emacs looses focus?

I recently had a Sublime Text user try out Emacs for a while, and he was interested in getting the same auto-save behavior in Emacs. 

Basically, he wanted all buffers to beall buffers to be saved whenever the frame lost focus (really saved whenever the frame lost focus, not just backed-up). This includes when switching windows to a completely different application. 

I could not find any event that was triggered when switching to a different application. Is there such an event or is there another way to achieve the same behavior? 

Note a time based solution was not satisfactory, and neither was the default auto backup behavior. He specifically wanted the associated named filebuffers to be saved out equivalent to(as in save-buffer) for all files.

How to add an auto-save feature to Emacs?

I recently had a Sublime Text user try out Emacs for a while, and he was interested in getting the same auto-save behavior in Emacs. Basically, he wanted all buffers to be saved whenever the frame lost focus. This includes when switching windows to a completely different application. I could not find any event that was triggered when switching to a different application. Is there such an event or is there another way to achieve the same behavior? Note a time based solution was not satisfactory, and neither was the default auto backup behavior. He specifically wanted the associated named file to be saved out equivalent to save-buffer for all files.

How to auto-save buffers when Emacs looses focus?

I recently had a Sublime Text user try out Emacs for a while, and he was interested in getting the same auto-save behavior in Emacs. 

Basically, he wanted all buffers to be saved whenever the frame lost focus (really saved, not just backed-up). This includes when switching windows to a completely different application. 

I could not find any event that was triggered when switching to a different application. Is there such an event or is there another way to achieve the same behavior? 

Note a time based solution was not satisfactory, and neither was the default auto backup behavior. He specifically wanted the buffers to be saved (as in save-buffer) for all files.

Emulating Sublime Text How to add an auto-save behaviorfeature to Emacs?

I recently had a Sublime Text user try out Emacs for a while, and he was interestinginterested in getting the same auto-save behavior in Emacs. Basically, he wanted all buffers to be saved whenever the frame lost focus. This includes when switching windows to a completely different application. I could not find any event that was triggered when switching to a different application. Is there such an event or is there another way to achieve the same behavior? Note a time based solution was not satisfactory, and neither was the default auto backup behavior. He specifically wanted the associated named file to be saved out equivalent to save-buffer for all files.

Emulating Sublime Text auto-save behavior

I recently had a Sublime Text user try out Emacs for a while, and he was interesting in getting the same auto-save behavior in Emacs. Basically, he wanted all buffers to be saved whenever the frame lost focus. This includes when switching windows to a completely different application. I could not find any event that was triggered when switching to a different application. Is there such an event or is there another way to achieve the same behavior? Note a time based solution was not satisfactory, and neither was the default auto backup behavior. He specifically wanted the associated named file to be saved out equivalent to save-buffer for all files.

How to add an auto-save feature to Emacs?

I recently had a Sublime Text user try out Emacs for a while, and he was interested in getting the same auto-save behavior in Emacs. Basically, he wanted all buffers to be saved whenever the frame lost focus. This includes when switching windows to a completely different application. I could not find any event that was triggered when switching to a different application. Is there such an event or is there another way to achieve the same behavior? Note a time based solution was not satisfactory, and neither was the default auto backup behavior. He specifically wanted the associated named file to be saved out equivalent to save-buffer for all files.

Source Link
b4hand
  • 2.1k
  • 1
  • 22
  • 31
Loading