From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehvNZ-000376-9A for guix-patches@gnu.org; Sat, 03 Feb 2018 05:49:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehvNW-0007Qn-5l for guix-patches@gnu.org; Sat, 03 Feb 2018 05:49:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:47057) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehvNW-0007Qi-1x for guix-patches@gnu.org; Sat, 03 Feb 2018 05:49:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ehvNV-0004Zd-Oo for guix-patches@gnu.org; Sat, 03 Feb 2018 05:49:01 -0500 Subject: [bug#30333] [PATCH] gnu: Add emacs-scratch-el. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehvMP-0002DX-R4 for guix-patches@gnu.org; Sat, 03 Feb 2018 05:47:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehvMM-000604-Pi for guix-patches@gnu.org; Sat, 03 Feb 2018 05:47:53 -0500 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:35001) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehvMM-0005zp-Gr for guix-patches@gnu.org; Sat, 03 Feb 2018 05:47:50 -0500 Received: by mail-lf0-x22f.google.com with SMTP id a204so35173499lfa.2 for ; Sat, 03 Feb 2018 02:47:50 -0800 (PST) From: Oleg Pykhalov Date: Sat, 3 Feb 2018 13:47:03 +0300 Message-Id: <20180203104703.16476-1-go.wigust@gmail.com> 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: 30333@debbugs.gnu.org * gnu/packages/emacs.scm (emacs-scratch-el): New public variable. --- gnu/packages/emacs.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 9523f14da..69d18b060 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -6940,3 +6940,41 @@ navigation with the grails mode.") @code{org-tree-slide-mode} to enter the slideshow mode, and then @kbd{C->} and @kbd{C-<} to jump to the next and previous slide.") (license license:gpl3+)))) + +(define-public emacs-scratch-el + (let ((commit "2cdf2b841ce7a0987093f65b0cc431947549f897") + (revision "1")) + (package + (name "emacs-scratch-el") + (version (string-append "1.2" revision "." + (string-take commit 7))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ieure/scratch-el.git") + (commit commit))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "0wscsndynjmnliajqaz28r1ww81j8wh84zwaaswx51abhwgl0idf")))) + (build-system emacs-build-system) + (native-inputs + `(("texinfo" ,texinfo))) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'install 'install-doc + (lambda* (#:key outputs #:allow-other-keys) + (unless (invoke "makeinfo" "scratch.texi") + (error "makeinfo failed")) + (install-file "scratch.info" + (string-append (assoc-ref outputs "out") + "/share/info"))))))) + (home-page "https://github.com/ieure/scratch-el/") + (synopsis "Create scratch buffers with the same mode current buffer") + (description "Scratch is an extension to Emacs that enables one to create +scratch buffers that are in the same mode as the current buffer. This is +notably useful when working on code in some language; you may grab code into a +scratch buffer, and, by virtue of this extension, do so using the Emacs +formatting rules for that language.") + (license license:bsd-2)))) -- 2.15.1