Summary
Create a setup script in the spacemacs directory that automates the local environment setup for the Spacemacs/Emacs config.
Tasks
- Create a symbolic link for
private/local to the desired target
- Run
git update-index --skip-worktree private/local/README.md to hide the deletion from git status
Why
When private/local is symlinked to another location, git reports private/local/README.md as deleted. Rather than modifying .gitignore, --skip-worktree cleanly hides this expected local change. A script ensures this setup is reproducible and documented.
Summary
Create a setup script in the
spacemacsdirectory that automates the local environment setup for the Spacemacs/Emacs config.Tasks
private/localto the desired targetgit update-index --skip-worktree private/local/README.mdto hide the deletion from git statusWhy
When
private/localis symlinked to another location, git reportsprivate/local/README.mdas deleted. Rather than modifying.gitignore,--skip-worktreecleanly hides this expected local change. A script ensures this setup is reproducible and documented.