purcell / envrc

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

Fix README #3

Closed DamienCassou closed 4 years ago

purcell commented 4 years ago

This is the wrong fix, I think: I actually meant late. Afaict, when you enable a global minor mode, it adds its setup function at the beginning of the hooks like find-file-hooks. So if you want to enable a minor mode early in the initialisation of each buffer, you need to enable its globalised minor mode late.

DamienCassou commented 4 years ago

Thank you for the explanation. I updated my PR to change the README anyway because it might confuse other readers. Feel free to close the PR if you feel the current text is good enough.

purcell commented 4 years ago

Perfect, thank you!