reddit / emacs

Using Emacs' project.el with Git Submodules

pedzsanReddit · 2022-11-03 14:24
It isn't clear to me how to add new projects to Emacs' native project concept. In my case, my Emacs init files is a git repo with submodules for each package that I'm using. I have the main repo added as a project but when I go to a submodule, Emacs thinks it is part of the main repo but I'd rather have each be their own separate project. Has anyone dealt with such a situation before?
ambihelical · 2022-11-03 16:17
There's a variable that causes submodules to be merged into the main one. You can try setting it to nil -> project-vc-merge-submodules.
alcanost · 2022-11-03 18:52
`(setq project-vc-merge-submodules nil)`