Skip to main content
deleted 343 characters in body
Source Link
Witek
  • 379
  • 2
  • 13

Given a project directory my-project which projectile correctly identifies because it is a git project.

Inside my-project there is a my-module directory. It is a git submodule and therefor projectile identifies it as a project of it's own.

But I want all files inside of my-project/my-module to be considered as part of my-project.

What is the idiomatic way to configure this?

I would like a solution in dir-locals.el so it does not affect other projects.

I have tried putting this into my-project/my-module/.dir-locals.el:

((nil . ((projectile-project-root . "/p/my-project/")))) 

This partially works. When editing a file in the sub project projectile-project-info identifies /p/my-project as the project dir. But projectile-find-file does not show files from the sub project.

Given a project directory my-project which projectile correctly identifies because it is a git project.

Inside my-project there is a my-module directory. It is a git submodule and therefor projectile identifies it as a project of it's own.

But I want all files inside of my-project/my-module to be considered as part of my-project.

What is the idiomatic way to configure this?

I would like a solution in dir-locals.el so it does not affect other projects.

I have tried putting this into my-project/my-module/.dir-locals.el:

((nil . ((projectile-project-root . "/p/my-project/")))) 

This partially works. When editing a file in the sub project projectile-project-info identifies /p/my-project as the project dir. But projectile-find-file does not show files from the sub project.

Given a project directory my-project which projectile correctly identifies because it is a git project.

Inside my-project there is a my-module directory. It is a git submodule and therefor projectile identifies it as a project of it's own.

But I want all files inside of my-project/my-module to be considered as part of my-project.

What is the idiomatic way to configure this?

I would like a solution in dir-locals.el so it does not affect other projects.

added 291 characters in body
Source Link
Witek
  • 379
  • 2
  • 13

Given a project directory my-project which projectile correctly identifies because it is a git project.

Inside my-project there is a my-module directory. It is a git submodule and therefor projectile identifies it as a project of it's own.

But I want all files inside of my-project/my-module to be considered as part of my-project.

What is the idiomatic way to configure this?

I would like a solution in dir-locals.el so it does not affect other projects. But 

I don't even know where to puthave tried putting this into my-project/my-module/.dir-locals.el:

((nil . ((projectile-project-root . "/p/my-project/")))) 

This partially works. When editing a file in the sub project projectile-project-info identifies /p/my-project as the project dir. But projectile-find-file does not show files from the sub project.

Given a project directory my-project which projectile correctly identifies because it is a git project.

Inside my-project there is a my-module directory. It is a git submodule and therefor projectile identifies it as a project of it's own.

But I want all files inside of my-project/my-module to be considered as part of my-project.

What is the idiomatic way to configure this?

I would like a solution in dir-locals.el so it does not affect other projects. But I don't even know where to put dir-locals.el.

Given a project directory my-project which projectile correctly identifies because it is a git project.

Inside my-project there is a my-module directory. It is a git submodule and therefor projectile identifies it as a project of it's own.

But I want all files inside of my-project/my-module to be considered as part of my-project.

What is the idiomatic way to configure this?

I would like a solution in dir-locals.el so it does not affect other projects. 

I have tried putting this into my-project/my-module/.dir-locals.el:

((nil . ((projectile-project-root . "/p/my-project/")))) 

This partially works. When editing a file in the sub project projectile-project-info identifies /p/my-project as the project dir. But projectile-find-file does not show files from the sub project.

added 136 characters in body
Source Link
Witek
  • 379
  • 2
  • 13

Given a project directory my-project which projectile correctly identifies because it is a git project.

Inside my-project there is a my-module directory. It is a git submodule and therefor projectile identifies it as a project of it's own.

But I want all files inside of my-project/my-module to be considered as part of my-project.

What is the idiomatic way to configure this?

I would like a solution in dir-locals.el so it does not affect other projects. But I don't even know where to put dir-locals.el.

Given a project directory my-project which projectile correctly identifies because it is a git project.

Inside my-project there is a my-module directory. It is a git submodule and therefor projectile identifies it as a project of it's own.

But I want all files inside of my-project/my-module to be considered as part of my-project.

What is the idiomatic way to configure this?

Given a project directory my-project which projectile correctly identifies because it is a git project.

Inside my-project there is a my-module directory. It is a git submodule and therefor projectile identifies it as a project of it's own.

But I want all files inside of my-project/my-module to be considered as part of my-project.

What is the idiomatic way to configure this?

I would like a solution in dir-locals.el so it does not affect other projects. But I don't even know where to put dir-locals.el.

Source Link
Witek
  • 379
  • 2
  • 13
Loading