From patchwork Sun Mar 21 23:59:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "LaFreniere, Joseph" X-Patchwork-Id: 28006 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 8681D27BC58; Mon, 22 Mar 2021 00:00:11 +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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_PASS,T_DKIM_INVALID,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 ESMTPS id D86C527BC57 for ; Mon, 22 Mar 2021 00:00:10 +0000 (GMT) Received: from localhost ([::1]:60102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO7zO-0008CF-1E for patchwork@mira.cbaines.net; Sun, 21 Mar 2021 20:00:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO7zG-0008C1-HM for guix-patches@gnu.org; Sun, 21 Mar 2021 20:00:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44157) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lO7zG-0004IZ-9B for guix-patches@gnu.org; Sun, 21 Mar 2021 20:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lO7zG-0005uO-6f for guix-patches@gnu.org; Sun, 21 Mar 2021 20:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47305] [PATCH] gnu: Add emacs-cascading-dir-locals. Resent-From: Joseph LaFreniere Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 22 Mar 2021 00:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47305 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47305@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161637116622631 (code B ref -1); Mon, 22 Mar 2021 00:00:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Mar 2021 23:59:26 +0000 Received: from localhost ([127.0.0.1]:55700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO7yf-0005sx-Lx for submit@debbugs.gnu.org; Sun, 21 Mar 2021 19:59:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:33476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO7ye-0005sp-4H for submit@debbugs.gnu.org; Sun, 21 Mar 2021 19:59:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO7yd-0008A9-Fn for guix-patches@gnu.org; Sun, 21 Mar 2021 19:59:23 -0400 Received: from mx.kolabnow.com ([95.128.36.42]:33220) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO7yb-00040F-89 for guix-patches@gnu.org; Sun, 21 Mar 2021 19:59:22 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out001.mykolab.com (Postfix) with ESMTP id 480AA5ED for ; Mon, 22 Mar 2021 00:59:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= dkim20160331; t=1616371158; x=1618185559; bh=MPGtYplVFHKm6X+bJr3 MlN1f8ws0E1JIbnGILI8/Rbg=; b=Df95Ljpe+uUdPvzFkN6Y4oAqNhqWdvw+vob E61wrg74BcKhMlztRxJw3psEHnI96bDrwWSMCkl0pQrIPLztwfOAz6fN8R0R3nY7 heenqX9KEOeH607I8xrWie/Io7JZIZUinH0dqHBr3tGSRZHwf+OTY/48O4sDG5T2 XF5v6/ONi9B091WqBh3EWre1VGoGp37X0XjiBqKGvXubwT6mbwnkwIZJX3jjr9VT Ie67GItgrZvLVlO3WJ+72wtmwzLgI58VlKQwewSoWA2MA2BFWbJaZBPtBdON6tSh QNYmRr13yMhi6qMDm5kjqNQ3piHpeNy5JJCKg9sjTxdCHdGM6PRv8zhi9fzYZU30 4KhknupCZHn2NFlrq7VbQ012scHplawfUAjSYxOTi9xdHuOS9gtAPLD3wSiVoUHz g06GkJewzWudnjbJRCYvoSvW/ruxt8WVB5+KLw3MlOPtgKRwEOXMHcQewGq2CTVN 5993Obgly/ZITcIVEGKykbmW6GSbEYYz+pRJ0rtpBhcW/eNqrrEXjtM/KzUY1in7 EiV7v3Rz6lOQmcSkCY40xVHCHwNJogVyyc8WyR1KP+u/DQknckke8mnQE/mL9lqG mwG4dv5Cx9pMv3C3/x2k+VkevdbI8W4jf72lbffcA0I88OYrxjMyVzcwVWmBksHw K/HoPamw= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VFnKp3rG4Ndk for ; Mon, 22 Mar 2021 00:59:18 +0100 (CET) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out001.mykolab.com (Postfix) with ESMTPS id 6CE0E469 for ; Mon, 22 Mar 2021 00:59:17 +0100 (CET) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx003.mykolab.com (Postfix) with ESMTPS id CDF2C5C42 for ; Mon, 22 Mar 2021 00:59:16 +0100 (CET) From: Joseph LaFreniere Date: Sun, 21 Mar 2021 18:59:13 -0500 Message-ID: <87y2egys6m.fsf@lafreniere.xyz> MIME-Version: 1.0 Received-SPF: pass client-ip=95.128.36.42; envelope-from=joseph@lafreniere.xyz; helo=mx.kolabnow.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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 Patch file is attached. --- Joseph LaFreniere From 5850eca0f094b35dcfc8a7da223bc836c7bbec3b Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Sun, 21 Mar 2021 18:58:25 -0500 Subject: [PATCH] gnu: Add emacs-cascading-dir-locals. * gnu/packages/emacs-xyz.scm (emacs-cascading-dir-locals): New variable. --- gnu/packages/emacs-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 7085318e58..da89c41275 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -27253,3 +27253,36 @@ and prefered services can easily be configured.") "This package provides an Elisp wrapper around the Java @command{keytool} command and major mode for viewing Java keystores.") (license license:expat)))) + +(define-public emacs-cascading-dir-locals + (let ((release "0.1") + (revision "0") + (commit "efdf5e6d62b955ee0ca3c170eae1d388799f9fa0")) + (package + (name "emacs-cascading-dir-locals") + (version (git-version release revision commit)) + (home-page "https://github.com/fritzgrabo/cascading-dir-locals") + (source + (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1jwd99kk5l588n7wwi1x3b4bgimm66x1icna3n20pwaj49kf0zy8")))) + (build-system emacs-build-system) + (synopsis "Apply all @file{.dir-locals.el} from root to current directory") + (description + "This package provides a global minor mode that changes how Emacs +handles the lookup of applicable dir-locals files (@file{.dir-locals.el}): +instead of starting at the directory of the visited file and moving up the +directory tree only until a first dir-locals file is found, collect and apply +all (!) dir-locals files found from the current directory up to the root one. + +Values specified in files nearer to the current directory take precedence over +values in files farther away from it. + +You might want to use this to globally set dir-local variables that apply to +all of your projects, then override or add variables on a per-project basis.") + (license license:gpl3+)))) -- 2.31.0