From 9d2e9fce93eeba9c5d4247ca3483cd12923c8542 Mon Sep 17 00:00:00 2001 From: claytharrison Date: Sat, 21 Dec 2024 21:28:58 +0100 Subject: [PATCH] Use fallback environment instead of base --- micromamba.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/micromamba.el b/micromamba.el index 6194c62..f8730a6 100644 --- a/micromamba.el +++ b/micromamba.el @@ -68,6 +68,9 @@ "Whether to activate the base environment by default if no other is preferred. Default nil." :type 'boolean +(defcustom micromamba-fallback-environment nil + "An environment that micromamba.el activates by default." + :type 'string :group 'micromamba) (defcustom micromamba-preactivate-hook nil @@ -233,10 +236,7 @@ Returns an alist with the following keys: (when working-dir (or (micromamba--get-name-from-env-yml (micromamba--find-env-yml working-dir)) - (when (or - micromamba-activate-base-by-default - (alist-get 'auto_activate_base (micromamba--get-config))) - "base"))))) + micromamba-fallback-environment)))) (defun micromamba--get-activation-parameters (prefix) "Get activation parameters for the environment PREFIX.