I'm using Emacs on a virtualenv project with Cython files, and that means that most of the files are not ones I'm editing. In particular, I don't want anything from the user subdir in the project. So far no problems -- -/usr
works in the .projectile
file. Now I want no .c
files. That doesn't work. the documentation says that I should put -*.c
in the .projectile
file. That doesn't work. Neither does -/foo/bar/*.c
, nor any other permutation I can think of. Also, when the items in the .projectile
file have slashes, the find
command prints lots of warnings about paths with slashes. Is there an Emacs Lisp way to do things that's better? Or am I just missing something?
Asked
Active
Viewed 3,353 times
7

itsjeyd
- 5,070
- 2
- 30
- 49

Henry Crutcher
- 2,137
- 20
- 28
-
Looking at the documentation I suspect that you forgot to add a wildcard. It clearly states that `-*.c` should ignore all files with extension `c`. – elemakil Sep 29 '14 at 15:52
-
Actually, that's a bug in the way I asked the question -- the - and wildcard were in the .projectile file. Thanks for the good idea, though. I wish the answer were that simple :-). – Henry Crutcher Sep 29 '14 at 16:09
-
BTW, I edited my question to be correct. – Henry Crutcher Sep 29 '14 at 17:53
-
Thanks for the edit -- looks much nicer! – Henry Crutcher Sep 30 '14 at 17:09
1 Answers
6
If you do not enable "native indexing" (which is I believe disabled by default), Projectile ignores the contents of .projectile
and uses .gitignore
.
So either put (setq projectile-indexing-method 'native)
in your .emacs
file or populate .gitignore
.

BahmanM
- 1,420
- 10
- 18
-
I see `Hybrid` mode working well for this, which probably has some advantages over `Native`. – Micah Elliott Feb 01 '19 at 18:58