unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: 27097@debbugs.gnu.org
Subject: bug#27097: [PATCH] gnu: Add emacs-direnv.
Date: Sat, 27 May 2017 11:56:41 +0100	[thread overview]
Message-ID: <20170527105641.9426-1-mail@cbaines.net> (raw)

* gnu/packages/emacs.scm (emacs-direnv): New variable.
---
 gnu/packages/emacs.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index a59a4ca69..f378ec368 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -1227,6 +1227,37 @@ or XEmacs.")
 the Emacs buffer.")
     (license license:gpl3+)))
 
+(define-public emacs-direnv
+  (package
+    (name "emacs-direnv")
+    (version "1.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/wbolster/emacs-direnv/archive/"
+             version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0m9nxawklhiiysyibzzhh2zkxgq1fskqvaqb06f7r8dnhabfy9fr"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("dash" ,emacs-dash)
+       ("with-editor" ,emacs-with-editor)))
+    (home-page "https://github.com/wbolster/emacs-direnv")
+    (synopsis "Direnv integration for Emacs")
+    (description
+     "This package provides support for invoking direnv to get the environment
+for the current file and updating the environment within Emacs to match.
+
+Direnv can be invoked manually, and a global minor mode is included that will
+update the environment when the active buffer changes.
+
+Using emacs-direnv means that programs started from Emacs will use the
+environment set through Direnv.")
+    (license license:gpl3+)))
+
 (define-public emacs-google-maps
   (package
     (name "emacs-google-maps")
-- 
2.13.0

             reply	other threads:[~2017-05-27 10:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-27 10:56 Christopher Baines [this message]
2017-05-28 20:09 ` bug#27097: [PATCH] gnu: Add emacs-direnv Ludovic Courtès
     [not found] ` <20170527123113.1ca668e7@cbaines.net>
2017-05-30 15:03   ` bug#27097: Combining Guix, direnv and Emacs for environment customisation Ludovic Courtès
     [not found]     ` <rbu4lvzetj0.fsf@gnu.org>
2017-06-03 13:59       ` Ludovic Courtès
     [not found]         ` <871sr0ok2h.fsf@gnu.org>
2017-06-04 21:15           ` Ludovic Courtès
     [not found]             ` <87efuym57c.fsf@gnu.org>
     [not found]               ` <878tl4f4d4.fsf@elephly.net>
     [not found]                 ` <8760g856j8.fsf_-_@gnu.org>
2017-06-07 12:59                   ` bug#27097: Performance on NFS Ricardo Wurmus
     [not found]               ` <87a85kt7ad.fsf_-_@gnu.org>
     [not found]                 ` <rbutw3seym8.fsf@gnu.org>
     [not found]                   ` <87a85hnvqm.fsf@gnu.org>
2017-06-12  8:45                     ` [bug#27097] " Roel Janssen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170527105641.9426-1-mail@cbaines.net \
    --to=mail@cbaines.net \
    --cc=27097@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).