[Nix-dev] Announcing nix-buffer, nix-shell for emacs

Moritz Ulrich moritz at tarn-vedra.de
Mon Sep 5 19:12:03 CEST 2016


zimbatm <zimbatm at zimbatm.com> writes:

> In emacs the plugin would need to call `direnv export json` on enter/leave
> of a context. This gives you a diff of environment variables to apply.
> There is a bit more complexity when implementing the security framework but
> that's about it.

That's actually quite easy to do - you just have to modify
`process-environment` and all processes spawned from Emacs (most
notably M-x compile) will inherit that environment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160905/36e59303/attachment.sig>


More information about the nix-dev mailing list