From patchwork Fri Mar 5 12:33:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 27455 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 6E8ED27BC4F; Fri, 5 Mar 2021 12:34:10 +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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 86CE527BC50 for ; Fri, 5 Mar 2021 12:34:09 +0000 (GMT) Received: from localhost ([::1]:48988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lI9ei-0007AO-L5 for patchwork@mira.cbaines.net; Fri, 05 Mar 2021 07:34:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lI9ec-0007AI-OD for guix-patches@gnu.org; Fri, 05 Mar 2021 07:34:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49810) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lI9ec-0002pM-H4 for guix-patches@gnu.org; Fri, 05 Mar 2021 07:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lI9ec-0007nF-D8 for guix-patches@gnu.org; Fri, 05 Mar 2021 07:34:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46944] [PATCH] gnu: Add emacs-envrc. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Mar 2021 12:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46944 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46944@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161494761129918 (code B ref -1); Fri, 05 Mar 2021 12:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Mar 2021 12:33:31 +0000 Received: from localhost ([127.0.0.1]:33123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lI9e6-0007mU-PA for submit@debbugs.gnu.org; Fri, 05 Mar 2021 07:33:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:50186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lI9e5-0007mL-2D for submit@debbugs.gnu.org; Fri, 05 Mar 2021 07:33:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lI9e4-0006zT-Rr for guix-patches@gnu.org; Fri, 05 Mar 2021 07:33:28 -0500 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:42846 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lI9e2-0002Yp-9J for guix-patches@gnu.org; Fri, 05 Mar 2021 07:33:28 -0500 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1614947601; bh=H1R0jkg/IcudGxo+vkO8op3HHVj2YbyLEtnEfRGQKGU=; h=From:To:Subject:Date; b=AvlIyRduq9TIqRe8fz5/JJD+mr+M0OVBS1TtZO0t7OgjzSEWD04tnKValwTolb7Ck dv9YSykYhP329vMO55J3k8nHRnqwQvJQ80g3eCZJlYTfIMJQQsBll5zmlItRSzc9Z1 2aarrlgKMcBzeAjUHmTfGNqxNvpRzyIelLaCEIZY= Message-Id: Date: Fri, 05 Mar 2021 13:33:10 +0100 MIME-Version: 1.0 Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=0.001, PDS_OTHER_BAD_TLD=1.683, RDNS_DYNAMIC=0.982, 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 * gnu/packages/emacs-xyz.scm (emacs-envrc): New variable. --- gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) base-commit: c9d42d611c43e485fe39ef0adc2b032a4aec8fae diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 93dc4f86e9..e6dfe203a0 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -93,6 +93,7 @@ ;;; Copyright © 2021 Alexandr Vityazev ;;; Copyright © 2021 Yurii Kholodkov ;;; Copyright © 2021 Alexey Abramov +;;; Copyright © 2021 Xinglu Chen ;;; ;;; This file is part of GNU Guix. ;;; @@ -13615,6 +13616,31 @@ query them from the comfort of your editor.") (home-page "https://github.com/hrs/engine-mode") (license license:gpl3+))) +(define-public emacs-envrc + (package + (name "emacs-envrc") + (version "0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/purcell/envrc") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ssf9i6iym2rb530k2w5aj392qa73i6p5y0vwrs5qhkv9lagqq7p")))) + (build-system emacs-build-system) + (home-page "https://github.com/purcell/envrc") + (synopsis "Support for Direnv which operates buffer-locally") + (description "This is library which uses Direnv to set environment +variables on a per-buffer basis. This means that when you work across +multiple projects which have @file{.envrc} files, all processes launched from +the buffers \"in\" those projects will be executed with the environment +variables specified in those files. This allows different versions of linters +and other tools to be used in each project if desired.") + (license license:gpl3+))) + (define-public emacs-prop-menu (package (name "emacs-prop-menu")