New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow files to be added to fresh controlled directories #78
Comments
Also:
Should symlink the files from the git repository, and not erase files that Emacs generates in that folder (that also exist in the repo's .gitignore file). This currently does not work, because fresh will destroy the package archives that my init.el file downloads. |
I hit this within about an hour of experimenting with fresh. Fresh excels at composing files together and composing files to make directories, but composing files with managed directories using hooks/callbacks feels awkward. The proposed solution of symlinking all of the individual files rather than the top-level directory seems elegant to me since it allows other fresh mechanisms to "just work" within managed directories and also preserves non-managed files within across fresh updates. |
Here's a complete example of a relatively simple workaround that adds the 'personal' directory to prelude's '.emacs.d' directory. It totally opts out of the fresh tooling to do so, though, just using raw sh and git in the freshrc (taking advantage of being able to script within freshrc): https://github.com/sanbor/dotfiles/blob/c9464f585d3508d36bf58e57742f66f5e2d8be91/freshrc#L25 |
The following should work:
The text was updated successfully, but these errors were encountered: