Skip to content

Cannot locate files in a $EMACSDIR that is recursively symlinked #6794

@andresilva

Description

@andresilva

What did you expect to happen?

Until c05e615 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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreRelevant to Doom core

    Type

    Open to PRs

    No

    Priority

    None yet

    Projects

    Status
    In progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions