From: dave@adboyd.com (J. David Boyd)
Subject: Re: (kill-buffer "*scratch*")
Date: 23 Sep 2004 15:07:43 -0400 [thread overview]
Message-ID: <81hdporegw.fsf@adboyd.com> (raw)
In-Reply-To: 4152EDE3.8010702@yahoo.com
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
next prev parent reply other threads:[~2004-09-23 19:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3743.1095944748.1998.help-gnu-emacs@gnu.org>
2004-09-23 15:38 ` (kill-buffer "*scratch*") Kevin Rodgers
2004-09-23 19:07 ` J. David Boyd [this message]
2004-09-23 20:45 ` Drew Adams
2004-09-23 19:48 ` Stefan Monnier
2004-09-23 12:59 Frederic Motte
2004-09-23 15:34 ` J. David Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=81hdporegw.fsf@adboyd.com \
--to=dave@adboyd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).