Is there a particular reason why DOOMDIR isn't placed in the .local/env file?

What happened?

I found that DOOMDIR is denied to place in th env file by “doom-env-deny”. Is there a particular reason?

Tried both “doom sync” and “doom env”.

What did you expect to happen?

By setting DOOMDIR in shell, emacs starts up correctly from cli, with loading custom configurations.

I’ve tried bellow.

  • DOOMDIR=custom_doom.d emacs --init-directory=doomemacs_dir
  • export DOOMDIR=custom_doom.d && emacs --init-directory=doomemacs_dir

My purpose is switching emacs configuration in simple way, both for cli startup and GUI.

I wish I can startup doomemacs GUI correctly after I create symlink to ~/.emacs.d and set shell variable DOOMDIR. (Double click /Applications/Emacs.app to start emacs)

Steps to reproduce

System information


Loading data dump...