direnv
One way to manage project-specific environments. Related:
GNU Emacs Manual: Directory Variables