Reloading PATH and NIX_GHC env variables from nix-shell
jb55 opened this issue · 5 comments
Right now I have to close emacs, re-run nix-shell, and reopen emacs again to reload my NIX_GHC paths for ghc. It would be awesome if there was some function that ran nix-shell and reloaded the exec-path and environment variables without having to restart emacs.
I've been thinking about this actually. I don't have time at the moment, but I'll comment later on strategies for implementing this.
I have some simple code snippets that reload the exec-path, I'm hoping to have something more useful soon.
Awesom! :)
On Mon, Aug 17, 2015 at 6:54 PM, William Casarin notifications@github.com
wrote:
I have some simple code snippets that reload the exec-path, I'm hoping to
have something more useful soon.—
Reply to this email directly or view it on GitHub
#11 (comment)
.
I'm thinking we'll want to do another package (since the ones we have right now are focused on nixos options and not general-purpose). I was just thinking about some other functions that I might find useful. Perhaps name this nix-utils.el
or something?
I think we should have more like nix-core.el that we also use in the nixos-options, I've been working on a nixos-packages and it also has to use most of the code of nixos-options