featurep! will be renamed modulep! in the future, so it's been deprecated. They have identical interfaces, and can be replaced without issue. featurep! was never quite the right name for this macro. It implied that it had some connection to featurep, which it doesn't (only that it was similar in purpose; still, Doom modules are not features). To undo such implications and be consistent with its namespace (and since we're heading into a storm of breaking changes with the v3 release anyway), now was the best opportunity to begin the transition.
17 lines
695 B
EmacsLisp
17 lines
695 B
EmacsLisp
;;; lang/python/autoload/conda.el -*- lexical-binding: t; -*-
|
|
;;;###if (modulep! +conda)
|
|
|
|
;;;###autoload
|
|
(defun +python/set-conda-home ()
|
|
"Set `conda-anaconda-home' (ANACONDA_HOME).
|
|
|
|
Usually it's `~/.anaconda3' on local machine, but it can be set to a remote
|
|
directory using TRAMP syntax, e.g. `/ssh:host:/usr/bin/anaconda3'. This way, you
|
|
can use a remote conda environment, including the corresponding remote python
|
|
executable and packages."
|
|
(interactive)
|
|
(require 'conda)
|
|
(when-let (home (read-directory-name "Set conda home: " "~" nil nil conda-anaconda-home))
|
|
(setq conda-anaconda-home home)
|
|
(message "Successfully changed conda home to: %s" (abbreviate-file-name home))))
|
|
|