unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* desktop mode, periodic save
@ 2008-02-01 16:07 Xah Lee
  2008-02-10 20:54 ` Xah
  0 siblings, 1 reply; 5+ messages in thread
From: Xah Lee @ 2008-02-01 16:07 UTC (permalink / raw)
  To: help-gnu-emacs

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
  xah@xahlee.org
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-28 21:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-01 16:07 desktop mode, periodic save Xah Lee
2008-02-10 20:54 ` Xah
2008-02-28 18:01   ` Xah
2008-02-28 21:21     ` Thorsten Bonow
2008-02-28 21:45     ` Lowell Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).