Skip to content

Commit

Permalink
Merge pull request #57 from necaris/fix/env-subdirectory-docstring
Browse files Browse the repository at this point in the history
Add note to README about conda-env-subdirectory setting
  • Loading branch information
necaris authored May 9, 2020
2 parents c6d92d5 + 3628b61 commit 8dad784
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,22 @@ largely ported from [virtualenvwrapper.el](https://github.com/porterjamesj/virtu
```
Also, if you have configured your Anaconda environment directory differently from the default
(i.e. _not_ relative to the Anaconda installation), you additionally need to set the
`conda-env-home-directory`. For example, if it's at `~/anaconda3/envs`:
`conda-env-home-directory`. For example, if it's at `~/anaconda3/` (while your main Anaconda
installation might be at `/opt/anaconda`):
```
(setq conda-env-home-directory (expand-file-name "~/anaconda3/envs"))
(setq conda-env-home-directory (expand-file-name "~/anaconda3/"))
```
Especially if you've changed from the default configuration, be sure to double-check that
your Conda _environments_ are correctly located. The default subdirectory is `envs`, so
if your `conda-env-home-directory` is `~/anaconda3` then by default environments will be looked
for in `~/anaconda3/envs`. You can change this with the `conda-env-subdirectory` setting:
```
(setq
conda-env-home-directory (expand-file-name "~/anaconda3/") ;; as in previous example; not required
conda-env-subdirectory "myenvs")
```
Now environments will be searched for under `~/anaconda3/myenvs`.


* Use `M-x conda-env-activate` to activate conda environments and `M-x conda-env-deactivate`
to deactivate them. You can also use `M-x conda-env-activate-for-buffer` to try
Expand Down

0 comments on commit 8dad784

Please sign in to comment.