Subject: [PATCH] gnu: Add emacs-no-littering.

From: Amin Bandali <[email-masked]>
Date: Tue, 28 Jan 2020 19:13:44 -0500

* 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+)))
-- 
2.25.0