Questions tagged [projectile]

Projectile is a project management package and framework that facilitates operations against the project as a whole.

Filter by
Sorted by
Tagged with
40
votes
4answers
17k views

How to exclude files from Projectile?

I am using the helm-projectile setup from prelude and it has been a huge improvement to my workflow. The only remaining issue are auto-generated files (e.g. generated by CMake) which show up during ...
1
vote
1answer
157 views

Helm-Projectile find -perm /444 illegal mode string

I'm using emacs on the mac and helm-projectile is acting up. It's still working for files in current dired buffer, but the find-files feature is throwing the error: find: -perm /444: illegal mode ...
0
votes
1answer
845 views

How pass arguments for ctags / projectile-regenate-tags?

With the package projectile, I use projectile-regenate-tags. At the name already says, it regenates the TAGS-table of the current project on the project root. It works likke a charm. However, I ...
0
votes
0answers
86 views

Make Helm Projectile to show external sources

I'm pretty new to emacs (was using Vim), primarily using it for Ruby on Rails projects. At my free time, I like to write some C code for STM32 micro-controllers. Unlike RoR project, C project for ...
6
votes
1answer
2k views

Projectile installed but “Autoloading failed to define function projectile-mode”

I can M-x projectile-mode (I get this and other projectile commands in the completion list) but it fails with Autoloading failed to define function projectile-mode Projectile is an installed ...
0
votes
0answers
113 views

Projectile void variable `it`

Projectile, as of versions marmalade-0.10.0 and melpa-20150720.515, seems to have lost access to the it variable. I think that dash may have changed the variable's scope. How can I work around this? ...
1
vote
0answers
349 views

Projectile: how to exclude deep subdirectories by pattern?

Is it possible to exclude from a project all directories matching a pattern at other than the project root level? In my case, I want to exclude subdirectories (deeper than the project root level) with ...
0
votes
1answer
362 views

How to rebind C-backspace in projectile find file?

I've installed helm and projectile modes and I wanted to restore the previous behaviour of the C-backspace binding to kill whole last word. In these modes, when looking for a file (after pressing C-...
5
votes
1answer
1k views

Projectile indexes my home directory, how do I stop it from doing that?

Since I updated the whole of my emacs third party packages projectile has started to see my home folder (which emacs opens in) as a projectile project. There is no .projectile file in my home folder, ...
6
votes
2answers
3k views

Automatically add project directory to flycheck clang/gcc include path

I want to use syntax checking with Flycheck in my C++ projects, but the Clang checker fails to find the local file includes. For example, when I have: #include "foo/bar/x.h" in the file foo2/y.cc, ...
8
votes
1answer
2k views

variable project root folder in .dir-locals.el

I'm using company-mode for completion in C++ code. To tell clang backend of company where the include files for the current project are I have to use the following .dir-locals.el file ((c++-mode (...
4
votes
2answers
629 views

How to detect if in a project, then configure another keybinding for Projectile?

I have a keybinding that's bounded to helm-for-files. (define-key evil-normal-state-map (kbd "<f9>") 'helm-for-files) But when I enter a directory which is a project (to being recognized with ...
33
votes
2answers
11k views

How to clear cache of projectile file in spacemacs?

I am using spacemacs and often use the SPC p f key binding to find files in a projectile project. But even after removing a file from a git, SPC p f will show me that deleted file. I tried using SPC ...
2
votes
1answer
282 views

Have `projectile-find-file` fall back to `ido-find-file` outside of projects

How can I bind C-x C-f to invoke projectile-find-file when inside a project, and ido-find-file when not in a project?
6
votes
2answers
457 views

How to remove the projectile project name after the file name

I am attempting to clean up my modeline due to overcrowding. In my quest I have come across a problem I cannot figure out, namely projectile. By this I mean the project name after the file name, it ...
0
votes
1answer
41 views

What is the “customize” feature associated with defcustom and used in projectile.el?

Asking this question because it's really hard to Google "emacs customize" and get to the feature. From the defcustom documentation: You can specify variables using defcustom so that you and others ...
11
votes
6answers
7k views

Recursive grep in directory with helm and/or projectile?

A recursive grep in a directory should be the simplest thing, but I haven't found the recipe to get it to work yet. I'm juggling between the following commands and am not sure which has the ...
0
votes
0answers
523 views

how can I set a Python virtual environment in any shells (open, or that will be opened) based on changing projectile project

I'm using Projectile and pyenv-mode (https://github.com/proofit404/pyenv-mode). pyenv-mode has projectile integration to update the virtual environment while switching projects. This is the code to ...
2
votes
1answer
209 views

How to add branch label next to projectile string with smart-mode-line

This is something I asked on the official repository. By default, smart-mode-line displays the current projectile project-name before the buffer-name, and the vc-mode string after it: ... [P/...
4
votes
1answer
594 views

helm-projectile startup issue

I installed helm and projectile and added the following to my .emacs: (require 'helm) (projectile-global-mode) (setq projectile-completion-system 'helm) (helm-projectile-on) But I get this error ...
1
vote
1answer
460 views

Not able to use projectile-mode after installation from Emacs package manager [duplicate]

I am trying to install the projectile library. I am using Emacs 24.4.1, and I installed projectile-20150405.126 from the Emacs package manager. Then I tried to activate it in my init file: (require '...
2
votes
1answer
1k views

'projectile-global-mode' function is void at the startup, why?

I am addicted to helm-projectile, unfortunately after a recent update, all of a sudden I get the warning message at Emacs start-up that the function projectile-global-mode is void. Before that, ...
8
votes
1answer
1k views

Turn on projectile-mode only for files in actual projects

Projectile is pretty great, but I'm finding it difficult to have it turned on only in places where it would be effective. As I understand it, the two standard choices are to turn it on manually, as ...
6
votes
1answer
696 views

Run hook on new buffer

I am trying to create something like uniquely, which renames the buffer to the full path within the projectile project. I have the code working, however, I can't seem to figure out how to get it to ...
7
votes
1answer
872 views

Close other buffers with projectile

Projectile has a function to close all buffers related to a project (projectile-kill-buffers). Normally I also open non project related files during the day or emacs opens them when I'm stepping ...
7
votes
2answers
5k views

A search interface for org mode files

I use org-mode to take notes. Currently I have a root directory, say, "Notes", and there are several subdirectories inside it, for example, "Linux", "Programming", etc. The notes taken using org-mode ...
5
votes
1answer
871 views

Can I make the projectile chosen project sticky and not follow the current buffer

Is it possible to make projectile only switch projects when calling projectile-switch-project, and not follow the buffers? When I switch buffers in emacs, projectile will switch project to the ...
1
vote
2answers
755 views

How to display type of C variable in a curses type menu?

A friend of mine who uses vim had this useful feature enabled, that allowed him to see type/completion information in a dropdown window even in terminal mode. Currently in emacs I have to actually ...
2
votes
1answer
250 views

helm-project-switch-project in other window

Often i have a need to open a file from the other projectile-based project in another window. I'm using helm with projectile, so there's a function helm-projectile-switch-project (which i guess by ...
2
votes
0answers
881 views

Helm not working on remote project (Tramp over SSH)

I'm working on a project that is kept on a shared server (server runs Ubuntu 14.04 LTS; my machine runs OS X 10.10.2). I access the server files via Tramp using a password-secured SSH connection. ...
2
votes
0answers
335 views

Emacs crashing on OSX, no crash log file

My Emacs started to crash a lot without modifying .emacs or installing anything new. I can replicate the steps (using Helm, Projectile) by this: helm-projectile then I enter a query quickly and hit ...
9
votes
2answers
2k views

Projectile with caching doesn't like new files

I use projectile for my project browsing. I have seen that it's really slow, so I turned on caching. Now it's fast (not blazingly fast, sadly). If I create a new file outside emacs itself, projectile ...
5
votes
0answers
1k views

helm-projectile-ag : How can I refine the grep results further?

I have a newb question regarding the use of Helm in the context of Projectile. I'm using helm-projectile-ag to grep for strings in a large code base. The performance is excellent, but I'm needing to ...
1
vote
3answers
717 views

Helm Projectile file limit

I'm using helm with projectile. When i hit C-c p f - helm-projectile-find-file it shows no more then 100 files, turning off the caching doesn't help. I like to combine this with helm-occur, when i ...
3
votes
1answer
555 views

Show colors in mode-line for minor modes

Can't get colors to show up in the mode-line. (eval-after-load "projectile" '(setq projectile-mode-line '(:eval (concat " Pj[" (propertize (projectile-project-...
6
votes
0answers
1k views

Projectile only sees project related to current buffer, if the buffer belongs to a project

I have two projects opened in my Emacs. Both are git repos and have .projectile files in their directories. Relevant lines in my init.el (projectile-global-mode 1) (helm-mode) (setq projectile-...
2
votes
2answers
398 views

Define key to toggle between javascript implementation and test file

I have been trying to set up a shortcut for jumping between a JavaScript implementation and test. I have particular requirements that are making examples I see harder to apply. I currently work with ...
1
vote
1answer
1k views

Can't get grep search in helm-projectile working?

I got thankfully introduced to use helm and helm-projectile for all the goodies it has and especially the helm-projectile-grep-search. I must say, this supercharged Emacs by a long shot. I learned ...
3
votes
3answers
1k views

Find in Project with Ack

Trying to find in Project with Projectile.. In the Projectile menu i have Find in project (grep) Find in project (ack) Grep works but if i try ack i get.. -*- mode: ack-and-a-half; default-...
3
votes
1answer
240 views

How do I add a keybinding to a keymap that is on a prefix key

I just installed the pt.el package and now I want to bind projectile-pt to the default projectile search prefix (which is C-c p s). The goal is to have it as C-c p s p to begin with but also to have ...
4
votes
2answers
579 views

projectile-rails: run the current test

While it is easy to run the whole test suite with projectile-rails, this takes too much time. I'd like to be able to run the current test (i.e., the test point is located in) with a shortcut. Is this ...
4
votes
1answer
2k views

Adding a new project type to Projectile Mode

I would like Projectile Mode to recognize other projects besides the default ones (GIT, Maven, etc.) The README.md describes how to customize project root files, however it doesn't explain how ...
7
votes
1answer
770 views

How do I bind keys in ido?

I'm trying Projectile + ido + flx-ido (just for Projectile, ido-mode disabled otherwise). But: I don't like using right and left to switch between items. I want to change them into up and down, but ...
1
vote
1answer
120 views

projectile minor mode is enabled even though all projectile related is commented in init.el

I did install projectile from melpa and now want to give it try. So I fiddled together this lines to get projectile mode. (use-package projectile :config (setq projectile-enable-caching t) (...
4
votes
2answers
263 views

Projectile project in folder without write access?

At times I want to browse the code of projects to which I have read-only access. This makes it impossible for me to drop a .projectile file at the root of the project. Is there a way to define ...
8
votes
3answers
2k views

ibuffer: how to automatically create groups per project

I'd like to group my buffer list in ibuffer by project. Project is meant in the Projectile sense of the word. I don't want to change my Emacs configuration every time I'm working on a new project. Is ...
12
votes
1answer
3k views

Projectile does not show all files in project

After visiting a file that is part of a git repository, Projectile acknowledges the existence of my git repository as a project, but it only lists one file (the current file) as being part of the ...
12
votes
2answers
3k views

Mark and open multiple files with Helm and Projectile

Helm seem to support marking files in helm-find-files. Is it possible to open the marked files, each one inside of its own buffer from within the find file buffer? Update: I noticed that I was using ...
4
votes
3answers
723 views

find-grep-dired equivalents for ack and ag

Is there an equivalent find-grep-dired using ack or ag? With the ability to specify the directory where the search starts? The Dired output itself is not so important (in fact I prefer the ack-mode ...
4
votes
1answer
617 views

Projectile not showing all files under my Git project

I'm using Projectile to index a Rails 4 project. When I use M-x projectile-find-file to locate files using their file name, some files simply don't appear. For example, I have a file located in app/...

1 2 3