From patchwork Wed Jan 29 00:13:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amin Bandali X-Patchwork-Id: 20028 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 22164163A5; Wed, 29 Jan 2020 00:15:20 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id E40B1163A0 for ; Wed, 29 Jan 2020 00:15:19 +0000 (GMT) Received: from localhost ([::1]:39170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwb0o-0006EQ-00 for patchwork@mira.cbaines.net; Tue, 28 Jan 2020 19:15:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60015) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwb0d-0006EF-2Y for guix-patches@gnu.org; Tue, 28 Jan 2020 19:15:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwb0Y-0005T5-PL for guix-patches@gnu.org; Tue, 28 Jan 2020 19:15:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55346) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwb0Y-0005SJ-Km for guix-patches@gnu.org; Tue, 28 Jan 2020 19:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iwb0Y-0003N1-Gz for guix-patches@gnu.org; Tue, 28 Jan 2020 19:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39337] [PATCH] gnu: Add emacs-no-littering. Resent-From: Amin Bandali Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 Jan 2020 00:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39337 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39337@debbugs.gnu.org Cc: Amin Bandali X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158025684912855 (code B ref -1); Wed, 29 Jan 2020 00:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jan 2020 00:14:09 +0000 Received: from localhost ([127.0.0.1]:33080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwazg-0003LH-Qu for submit@debbugs.gnu.org; Tue, 28 Jan 2020 19:14:09 -0500 Received: from lists.gnu.org ([209.51.188.17]:48435) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwazf-0003L8-KO for submit@debbugs.gnu.org; Tue, 28 Jan 2020 19:14:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59302) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwaze-00063t-JG for guix-patches@gnu.org; Tue, 28 Jan 2020 19:14:07 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iwaze-0003LV-FK for guix-patches@gnu.org; Tue, 28 Jan 2020 19:14:06 -0500 Received: from cpe00fc8d518353-cm00fc8d518350.cpe.net.cable.rogers.com ([99.228.8.225]:33254 helo=chaman.hitronhub.home) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iwazb-0003Dn-H7; Tue, 28 Jan 2020 19:14:04 -0500 From: Amin Bandali Date: Tue, 28 Jan 2020 19:13:44 -0500 Message-Id: <20200129001344.12075-1-mab@gnu.org> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/emacs-xyz.scm (emacs-no-littering): New variable. --- gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index e834dfffb3..e9f998e5ae 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -21237,3 +21237,29 @@ mode-line text (lighter) of major and minor modes.") (description "@code{unkillable-scratch} helps prevent killing buffers matching a given regexp.") (license license:gpl2+)))) + +(define-public emacs-no-littering + (package + (name "emacs-no-littering") + (version "1.0.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emacscollective/no-littering.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17is06l0w6glppabv2kaclrnqi3dqb6p6alpslpg7lrjd8vd45ir")))) + (build-system emacs-build-system) + (home-page "https://github.com/emacscollective/no-littering") + (synopsis "Help keep ~/.emacs.d/ clean") + (description "The default paths used to store configuration files +and persistent data are not consistent across Emacs packages, be them +built-in or third-party ones. @code{no-littering} sets out to help +clean @file{~/.emacs.d/} by putting configuration files in +@var{no-littering-etc-directory} (default: @file{~/.emacs.d/etc/}) and +persistent data files in @var{no-littering-var-directory} (default: +@file{~/.emacs.d/var/}), as well as using more descriptive names for +files and subdirectories when appropriate.") + (license license:gpl3+)))