home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!munnari.oz.au!manuel!newshost!smith
- From: smith@pell.anu.edu.au (Michael Smith)
- Subject: Re: Save *scratch* on exit (Was Re: #XXX# file remains ...)
- In-Reply-To: dodd@mycenae.cchem's message of 27 Jul 92 08:36:27
- Message-ID: <SMITH.92Jul28093103@lamb.anu.edu.au>
- Followup-To: gnu.emacs.help
- Lines: 23
- Sender: news@newshost.anu.edu.au
- Organization: Australian National University
- References: nickel@cs.tu-berlin.DE (Juergen Nickelsen)
- <NICKEL.92Jul26152853@desaster.cs.tu-berlin.de>
- <DODD.92Jul27083627@mycenae.cchem>
- Date: 28 Jul 92 09:31:03
-
-
- > >>>>>(Juergen Nickelsen) said:
- > > On a related issue, I think someone a while back asked how one can
- > > get emacs to ask the user about saving *scratch* buffers when
- > > exiting emacs.
-
- > Juergen> Put the following into your ~/.emacs:
-
- > Juergen> (save-excursion
- > Juergen> (set-buffer "*scratch*")
- > Juergen> (setq buffer-file-name "~/*scratch*"))
-
- > This seems to work great for *scratch* but is there a way to set it up for all
- > buffers not attached to files?
-
- Yes. Just issue the following command (in your .emacs for example)
-
- (set-default 'buffer-offer-save t)
-
- Consult the documentation of 'buffer-offer-save.
-
- Cheers,
- Michael
- --
- ------------------------------------------------------------------------------
- /| | | | | Michael Smith
- /_| |\ | | | Mathematics Research Section
- smith@pell.anu.edu.au / | | \| |_/| Australian National University
- ------------------------------------------------------------------------------
-