From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Re: Wish List: support making *scratch* persistent Date: Mon, 2 Oct 2017 09:32:14 -0400 Message-ID: References: Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403043a4108e2a99e055a9068e1" X-Trace: blaine.gmane.org 1506951230 28897 195.159.176.226 (2 Oct 2017 13:33:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Oct 2017 13:33:50 +0000 (UTC) Cc: emacs-devel To: Robert Inder Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 02 15:33:45 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dz0qr-0006hi-1d for ged-emacs-devel@m.gmane.org; Mon, 02 Oct 2017 15:33:41 +0200 Original-Received: from localhost ([::1]:52317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz0qy-0006N7-8t for ged-emacs-devel@m.gmane.org; Mon, 02 Oct 2017 09:33:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz0q0-0006Lm-FF for emacs-devel@gnu.org; Mon, 02 Oct 2017 09:32:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dz0px-0002h3-SS for emacs-devel@gnu.org; Mon, 02 Oct 2017 09:32:48 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz0px-0002gr-O0 for emacs-devel@gnu.org; Mon, 02 Oct 2017 09:32:45 -0400 Original-Received: from mail-qk0-f181.google.com ([209.85.220.181]:46011) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dz0px-00058M-HD for emacs-devel@gnu.org; Mon, 02 Oct 2017 09:32:45 -0400 Original-Received: by mail-qk0-f181.google.com with SMTP id c67so4531363qkg.2 for ; Mon, 02 Oct 2017 06:32:45 -0700 (PDT) X-Gm-Message-State: AMCzsaWmZPSs61AB/3IEEVSuqus53SpvNnGCN+SPGZOxPG70xbABh6Tn AKsUL8/6wmfZYxxgxMF1MiYfpCTITlXrVSjwhyM= X-Google-Smtp-Source: AOwi7QCGlzZCjRKSaFjnOHFDdz9LJlh1VBbkAlFuPbbMSVHFmNv57baHWGkS8sK+4sXepcFy3piWaRwHASZtJKywXBk= X-Received: by 10.233.244.72 with SMTP id z8mr14957131qkl.186.1506951165026; Mon, 02 Oct 2017 06:32:45 -0700 (PDT) Original-Received: by 10.237.34.225 with HTTP; Mon, 2 Oct 2017 06:32:14 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219009 Archived-At: --f403043a4108e2a99e055a9068e1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Oct 2, 2017 at 7:01 AM, Robert Inder wrote: > > I'd like to be able to make the *scratch* buffer persist between sessions= . > > I realise that it is meant for things I don't want to save. But every fe= w > months, I get interrupted or distracted, and realise I have quit emacs or > rebooted a machine while there was something significant in *scratch*. T= o > know that I wouldn't lose stuff when that happened, I'd happily pay the > price of having to flush the buffer occasionally. > > I can't be the only one that is bitten by this from time to time. > =E2=80=8BYou are not. The "persistent-scratch" package available from MELP= A does exactly what you want. Simply install it and add this to your Emacs initialization file: ;;; Persistent Scratch - make *scratch* buffer persist across Emacs invocations (persistent-scratch-setup-default) Bob --f403043a4108e2a99e055a9068e1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Oct 2, 20= 17 at 7:01 AM, Robert Inder <robert@interactive.co.uk> wrote:
I'd like to be able to make the *scratch* buffer = persist between sessions.

I realise that it is meant for things I do= n't want to save.=C2=A0 But every few months, I get interrupted or dist= racted, and realise I have quit emacs or rebooted a machine while there was= something significant in *scratch*.=C2=A0 To know that I wouldn't lose= stuff when that happened, I'd happily pay the price of having to flush= the buffer occasionally.

I can't be the only one that is b= itten by this from time to time.

=E2= =80=8BYou are not.=C2=A0 The "persistent-scratch" package availab= le from MELPA does exactly what you want.=C2=A0 Simply install it and add t= his to your Emacs initialization file:

;;; Persistent Scratch - make= *scratch* buffer persist across Emacs invocations
(persistent-scratch-set= up-default)

Bob

--f403043a4108e2a99e055a9068e1--