necaris / conda.el

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

Activating environment when using 'emacs file.py' #144

Open valankar opened 1 year ago

valankar commented 1 year ago

I have setup a .dir-locals.el file such as:

((python-mode . ((conda-project-env-path . "foo"))))

When opening a file within emacs, it properly sets the conda environment. However, when I start emacs with a filename such as:

emacs file.py

It does not load the environment. I have also tried with a environment.yml file with same results. Is there a way to make this work?

I am using Spacemacs FWIW. Thanks.