purcell / envrc

Emacs support for direnv which operates buffer-locally
375 stars 35 forks source link

Fix `envrc-global-mode` with absolute direnv path #80

Closed accelbread closed 5 months ago

accelbread commented 6 months ago

Since e0e84964cf5d1096c95940d983e12cb7772b08fe, envrc-global-mode no longer works when envrc-direnv-executable is customized.

Since it always checks for "direnv", it won't work if direnv is not on the path or if the direnv executable has a different name.

aurtzy commented 5 months ago

Hi, I encountered what seems to be this issue on my Guix System. Overriding envrc-global-mode in my config with the definition from this patch fixes it. Thanks!

purcell commented 5 months ago

Sorry, I missed this at the time you submitted it. Thanks, will merge now.