From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:36200) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwEAk-0006MU-V0 for guix-patches@gnu.org; Mon, 27 Jan 2020 18:52:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwEAj-00034w-Vs for guix-patches@gnu.org; Mon, 27 Jan 2020 18:52:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53300) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwEAj-00034p-TO for guix-patches@gnu.org; Mon, 27 Jan 2020 18:52:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iwEAj-0000xw-T1 for guix-patches@gnu.org; Mon, 27 Jan 2020 18:52:01 -0500 Subject: [bug#39321] [PATCH] gnu: Add emacs-unkillable-scratch. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:36115) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwEAE-0006M3-Ox for guix-patches@gnu.org; Mon, 27 Jan 2020 18:51:31 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iwEAE-0002ru-Li for guix-patches@gnu.org; Mon, 27 Jan 2020 18:51:30 -0500 From: Amin Bandali Date: Mon, 27 Jan 2020 18:51:21 -0500 Message-Id: <20200127235121.14924-1-mab@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39321@debbugs.gnu.org Cc: Amin Bandali * gnu/packages/emacs-xyz.scm (emacs-unkillable-scratch): New variable. --- gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index c5214405d0..0ff2f5d0c0 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -21125,3 +21125,26 @@ pattern guessed from thing under current cursor position. mercury-mode provided by Emacs as a wrapper around prolog-mode.") (home-page "https://github.com/ahungry/metal-mercury-mode") (license license:gpl3+)))) + +(define-public emacs-unkillable-scratch + (let ((commit "b24c2a760529833f230c14cb02ff6e7ec92288ab") + (revision "0")) + (package + (name "emacs-unkillable-scratch") + (version (git-version "1.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/EricCrosson/unkillable-scratch.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "13wjbcxr3km4s96yhpavgs5acs5pvqv3ih1p84diqb3x3i6wd4pa")))) + (build-system emacs-build-system) + (home-page "https://github.com/EricCrosson/unkillable-scratch") + (synopsis "Prevents the *scratch* buffer from being killed") + (description "@code{unkillable-scratch} helps prevent killing buffers +matching a given regexp.") + (license license:gpl2+)))) -- 2.25.0