Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get Emacs projectile-mode to ignore most of the files that show up in a virtualenv Cython project?

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?

like image 487
Henry Crutcher Avatar asked Sep 29 '14 15:09

Henry Crutcher


1 Answers

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.

like image 193
BahmanM Avatar answered Nov 12 '22 06:11

BahmanM