doomemacs/lisp/cli
Henrik Lissner 231fc9cf53
fix(cli): link $XDG_*_HOME to fake $HOME for doom run
Due to a technical limitation of Emacs <=28, launching Emacs out of a
non-standard location is non-trivial, and `doom run` tries to promise
that it can do so on demand. Emacs 29 does introduce a --init-directory
switch that would make this easy, but it'll be some time before we can
rely on it.

So 'doom run' creates a fake $HOME in /tmp/doom.run/ and writes a
bootloader there to load your Doom config remotely. But there's a
problem: in this fake $HOME, none of the user's config, cache, data, or
binscript directories are available, so I symlink them there. This
should at least resolve the most trivial incompatibilities (like the
lack of all-the-icons fonts, which typically get installed to
$HOME/.local/share/fonts/ -- see #6807), but there may be yet more edge
cases. Still, this is a good enough compromise for now.

Fix: #6807
2022-09-18 13:55:47 +02:00
..
make refactor!: restructure Doom core 2022-07-30 22:41:13 +02:00
ci.el nit: revise comments, reformat config sections 2022-09-16 01:14:21 +02:00
compile.el fix(cli): remove vestigial doom-initialize-modules calls 2022-09-16 13:07:28 +02:00
doctor.el refactor(cli): explain! to use print!'s fill function 2022-09-16 01:14:23 +02:00
env.el fix(cli): remove redundant doom-env-file 2022-09-16 17:06:49 +02:00
help.el nit: minor comment revision and refactors 2022-09-16 17:01:57 +02:00
info.el refactor!: restructure Doom core 2022-07-30 22:41:13 +02:00
install.el fix(cli): remove vestigial doom-initialize-modules calls 2022-09-16 13:07:28 +02:00
make.el refactor!(cli): rename cli definers for consistency 2022-09-12 11:45:59 +02:00
packages.el fix(cli): remove redundant comp-effective-async-max-jobs advice 2022-09-16 19:20:45 +02:00
profiles.el feat(cli): introduce DOOMPROFILELOAD{FILE,PATH} envvars 2022-09-18 00:28:13 +02:00
run.el fix(cli): link $XDG_*_HOME to fake $HOME for doom run 2022-09-18 13:55:47 +02:00
sync.el fix(cli): type error trying to split a cons cell 2022-09-17 21:41:42 +02:00
test.el refactor!(cli): rename cli definers for consistency 2022-09-12 11:45:59 +02:00
upgrade.el fix(cli): more future resistant 'doom upgrade' 2022-07-31 00:58:36 +02:00