[Nix-dev] Re: nix profiles and env vars - proposal

Marc Weber marco-oweber at gmx.de
Fri Apr 24 12:58:37 CEST 2009


On Fri, Apr 24, 2009 at 12:42:11PM +0200, Ludovic Courtès wrote:
> Hello,
> 
> Marc Weber <marco-oweber at gmx.de> writes:
> 
> > You could then add one post hook collecting them and writing them into a
> > ~/.nix-profile/.emacs file which you can load in your ~/.emacs file.
> 
> That's another instance where environment hooks would come in handy (see
> http://thread.gmane.org/gmane.linux.distributions.nixos/993).
> 
> Currently, I just do:
> 
> --8<---------------cut here---------------start------------->8---
> (setq load-path
>       (cons (concat (getenv "HOME") "/.nix-profile/share/emacs/site-lisp")
> 	    load-path))
> --8<---------------cut here---------------end--------------->8---
> 
> Then you can just `require' anything that's installed in your profile.
> It works well and is a reasonably small annoyance.

Don't you have to invoke
('require feature)
as well for each extension you want to load?
That's not done by your snippet (it could be done though)
This ('require ..) has to be added in either case, correct?

Marc Weber



More information about the nix-dev mailing list