necaris / conda.el

Emacs helper library (and minor mode) to work with conda environments
MIT License
153 stars 49 forks source link

Auto Activate only for Python-mode #153

Open DamianB-BitFlipper opened 7 months ago

DamianB-BitFlipper commented 7 months ago

The (conda-env-autoactivate-mode t) mode is really nifty. However, I find it intrusive when I am working on my C++ projects, when it tries to load base. I rather only auto-activate conda for my .py buffers. Is this somehow possible.

I am using Doom by the way. I tried, but it did not work:

(after! python
  (add-hook 'python-mode-hook (lambda () (conda-env-autoactivate-mode t))))

Thanks in advance!