jiffier · 2022-06-07 10:10
I have a project that consists on 3 projects: backoffice, web, and business. Each of this projects have their own git repo, so I have something like this:
my-project
|- business
|- web
|- backoffice
The problem I have is that projectile uses one project per git repository, and I have three, so I can only use any project at a time.
Is there any way I can tell projectile that they are all the same project?
yyoncho · 2022-06-07 11:18
I guess putting .projectile file in my-project should be enough.
jiffier · 2022-06-07 13:42
Thanks. I already had a .projectile file in the main directory. Digging deeper, I've found that C-c p (projectile-find-file) f looks for files in all three projects, but C-x p f(project-find-file) only in the current (sub)project, and it's the command I was using until now. In fact I don't even know where project-find-file comes from, I'll try figure out :)
yyoncho · 2022-06-07 13:52
project-find-file comes from project.el which is projectile alternative. Generally, the root in projectile is calculated using `projectile-project-root-functions`. You may reorganize them to make sure that the one that you want to use is be picked up first.
mclearc · 2022-06-07 14:29
There is a similar solution with project.el. See this [blog post](https://michael.stapelberg.ch/posts/2021-04-02-emacs-project-override/) for discussion of how to put a `.project.el` file in any dir to make it the root (whether or not it is a vc repo).