doomemacs / doomemacs/core

Cannot locate files in a `$EMACSDIR` that is recursively symlinked

Open
#6,794 4 comments 0 reactions 0 assignees View on GitHub
core
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

Until https://github.com/doomemacs/doomemacs/commit/c05e61536ed9faaef5fe6f7f4351ffb3ab15cc87 it was possible to have all the files in `user-emacs-dir` be symlinks. This was really useful as a NixOS and home-manager user since all the files from the doom config would be symlinks to the nix store while still allowing doom to create its own files within those folders (for example for cache or profiles).

### What actually happened?

It seems that doom is not loading symlinked files at all and therefore I get a bunch of undefined variables and functions errors on startup.

### Describe your attempts to resolve the issue

_No response_

### Steps to reproduce

Recursively symlink all the `.config/emacs` and `.config/doom` files into some other location. Try to load emacs.

home-manager config example:

```nix
home.file = {
"${xdgConfigHome}/emacs" = {
source = doom-emacs; # this repo
recursive = true;
};
"${xdgConfigHome}/doom" = {
source = "${config.files.configDir}/doom-emacs"; # my personal doom config
recursive = true;
};
};
```

### System Information

https://pastebin.com/S0eyYNxy

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.