[comp.emacs] saving emacs buffers

morgan@CHAOS.CS.BRANDEIS.EDU ("Dylan Kaufman") (07/02/90)

Hi,

I once heard something about the possibility of saving the current
state of the buffers in emacs so that at a later time you can restore
that state and continue working.

Is this in fact possible?  If so, could someone please describe how?  

thanks in advance,


			     -<>Dylan<>-
 
		     morgan@chaos.cs.brandeis.edu

kjones@talos.pm.com (Kyle Jones) (07/05/90)

Dylan Kaufman writes:
 > I once heard something about the possibility of saving the current
 > state of the buffers in emacs so that at a later time you can restore
 > that state and continue working.
 > 
 > Is this in fact possible?  If so, could someone please
 > describe how?

You need to use the saveconf.el package that was first
distributed with Emacs version 18.52.

Put this in your .emacs file:

(require 'saveconf)
(setq auto-save-and-recover-context t)
(setq save-buffer-context t)
(if (null (cdr command-line-args))
    (setq inhibit-startup-message (recover-context)))

Emacs will resume visiting the buffers you were last editing in
the current directory if you invoke it (Emacs) without any
arguments.