[Nix-dev] Re: nix profiles and env vars - proposal
Ludovic Courtès
ludo at gnu.org
Fri Apr 24 12:42:11 CEST 2009
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.
Thanks,
Ludo'.
More information about the nix-dev
mailing list