help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

desktop mode, periodic save


From: Xah Lee
Subject: desktop mode, periodic save
Date: Fri, 1 Feb 2008 08:07:35 -0800 (PST)
User-agent: G2/1.0

I use desktop mode, so that in case of crashing (emacs or OS), i can
know which files i was working on or needs to work on.

However, by default, the desktop mode doesn't seems to save
periodically, so that when OS crash, i lost the info about which files
that was open or needs to work on.

I'm doing this as a solution:

(desktop-save-mode 1)

(add-hook 'find-file-hook (lambda () (desktop-save "~/")))

Is there a variable that i should use instead?

thx.

  Xah
  address@hidden
∑ http://xahlee.org/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]