jorgenschaefer / pyvenv

Python virtual environment interface for Emacs
364 stars 57 forks source link

Mode-line-indicator only in python buffers #126

Open unhammer opened 7 months ago

unhammer commented 7 months ago

I'm using this to avoid seeing the indicator when working on non-python stuff and other projects where it's just irrelevant noise. Maybe it's useful for someone else too (if not please close).

(I don't quite like the add-hooks on load here, feels like they should happen on turning on pyvenv-mode, but then we should also run the hook in all currently-open buffers of those modes. Or maybe there's a nicer way?)