Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

direnv-mode ignores custom exec-path entries #85

Open
acid-bong opened this issue Dec 11, 2024 · 0 comments
Open

direnv-mode ignores custom exec-path entries #85

acid-bong opened this issue Dec 11, 2024 · 0 comments

Comments

@acid-bong
Copy link

Expected behaviour: when I enter a direnv-managed directory, the new paths are expected to be prepended to exec-path.

Actual behaviour: exec-path is fully redefined.

Nix-related cases, where it'd better to modify exec-path instead of redefining it:

  • nix's script, that wraps Emacs with packages in a single closure, adds (add-to-list 'exec-path "$out/bin") to site-start.el, thus prepending the wrapped Emacs closure to its path
  • since I manage my Emacs with nix, I want to add some tools to Emacs' path, like LSPs, formatters, linters and so on

Possible culprit: https://github.com/wbolster/emacs-direnv/blob/main/direnv.el#L270-L271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant