Emacs project interaction library.
Questions tagged [emacs-projectile]
12 questions
16
votes
4 answers
Why Emacs project C-c p is undefined?
I am new to Emacs. I have installed Projectile.
When I do C-c p, it says:
C-c p is undefined
Wondering what is wrong?
Following is my ~/.emacs file.
(require 'package)
(add-to-list 'package-archives
'("melpa" .…

Elisa
- 6,865
- 11
- 41
- 56
9
votes
3 answers
Emacs projectile with multiple repos (git/svn etc.) in one project
I have a single git repo with a directory structure that looks like this:
root ---------- src
|
|
|------ 3rd
root is my working directory, 3rd consists of multiple third-party git submodules.
projectile-find-file only finds…

guoxx
- 348
- 1
- 9
7
votes
2 answers
How to use projectile-find-test-file
I'm using Emacs and projectile and trying to set the path to a test file so that I can use projectile-toggle-between-implementation-and-test.
I call M-xprojectile-find-test-file but the Helm buffer is empty. Whatever I put in the pattern field, no…

blokeley
- 6,726
- 9
- 53
- 75
7
votes
1 answer
emacs projectile - initialize project cache without git, hg, etc. repository
I want setup the projectile project for project that has no local git, hg, bzr, etc. directories so I cannot use their repositories as source of project files. Is it enough to just create the .projectile file in the root directory and use the C-u…

michal.szulc
- 71
- 1
- 4
1
vote
0 answers
emacs projectile: how to add multiple folders to project (like vscode)?
I am new to emacs, coming from VSCode, trying to setup projectile. So far my configuration includes:
(use-package projectile
:ensure t
:diminish projectile-mode
:config (projectile-mode)
:custom ((projectile-completion-system 'helm))
…

hyperio
- 401
- 3
- 13
1
vote
1 answer
Emacs recursive search/replace on Windows without Cygwin
To answer "where did I also use this identifier?" -questions, I run on macOS and the linuxes
dired-maybe-insert-subdir
dired-mark-files-regexp
followed by either of:
dired-do-find-regexp
dired-do-find-regexp-and-replace
On Windows I can get by…

Calaf
- 10,113
- 15
- 57
- 120
0
votes
0 answers
Projectile ignores all File markers except .git
I recently started working with a few projects that either don't have a .git directory in their root, or are a subdirectory of a git repo, e.g.
parent-project/
|- .git
+- my-project/
|- Cargo.toml
+- src/main.rs
And in all cases I…

Kasra Ferdowsi
- 574
- 5
- 16
0
votes
1 answer
let binding with projectile-project-root binds to nil
I think I'm missing something but why, in the following function, root value is nil?
(defun test-root ()
(let (root (projectile-project-root))
(message "root: %s\nprojectile: %S" root (projectile-project-root)
This is the result of my…

Lhooq
- 4,281
- 1
- 18
- 37
0
votes
1 answer
How to fix "projectile-find-implementation-or-test: No matching test file found for project type ‘haskell-stack’" in enh-ruby-mode?
I'm currently experiencing a weird behavior in projectile while working on a typical Rails project. Long time projectile user but this is the first time I see it:
projectile-find-implementation-or-test: No matching test file found for project type…

BinaryButterfly
- 18,137
- 13
- 50
- 91
0
votes
1 answer
How to override emacs-projectile default configuration for project?
I try to use emacs with projectile to configure and than build C++ CMake project. By default projectile use next configuration:
(defconst projectile--cmake-manual-command-alist
'((:configure-command . "cmake -S . -B build")
(:compile-command .…

leanid.chaika
- 2,143
- 2
- 27
- 30
0
votes
1 answer
Emacs: projectile-toggle-between-implementation-and-test for TypeScript spec file discovery
I really enjoyed using this projectile function in other languages but I'm currently having a hard time trying to figure out a way to set it for a typical TypeScript project.
ls services/
foo.service.ts foo.service.spec.ts bar.ts bar.spec.ts
When I…

BinaryButterfly
- 18,137
- 13
- 50
- 91
-1
votes
3 answers
Is there a way to jump straight to the magit-status page of another git project?
My general workflow for going to another project is
projectile-switch-project which pops up a helm interface for picking a project
select a project
select a file within the project to open the file
then run magit-status
Is there a way to combine…

irregular
- 1,437
- 3
- 20
- 39