[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (kill-buffer "*scratch*")
From: |
J. David Boyd |
Subject: |
Re: (kill-buffer "*scratch*") |
Date: |
23 Sep 2004 15:07:43 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> Frederic Motte wrote:
> > The other night, I was not able to sleep, thinking about a game world.
> > So I jumped out of my bed to write it down. Once I was happy of my
> > work, I went back in bed feeling good.
> >
> > Today, I wanted to read it again, but impossible to found it back.
> > I think I wrote it in the scratch buffer and closed emacs without
> > saving it.
> > Of course, emacs didn't asked me if I would like to save it.
>
> But it did tell you:
>
> ;; This buffer is for notes you don't want to save, and for Lisp evaluation.
> ;; If you want to create a file, visit that file with C-x C-f,
> ;; then enter the text in that file's own buffer.
>
> Try adding this to your .emacs file:
>
> (save-excursion
> (set-buffer "*scratch*")
> (setq buffer-offer-save t))
>
> --
> Kevin Rodgers
Excellent idea. I'm adding this to my .emacs right away, and thanks.
Dave