Questions tagged [project]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
39 votes
5 answers
24k views

What is the easiest way to search all useful files inside a single project?

What is the easiest way to search for a regexp throughout the contents all files in the current project, skipping files that are not useful? Useless files are things like compiled files, imported ...
Malabarba's user avatar
  • 23k
14 votes
4 answers
15k views

Can emacs support go to declaration of function in an entire project?

Does emacs have a function or library that can allow the user to go to the function declaration even if it was defined in another file? If so, what languages is there support for? The inspiration ...
user2522280's user avatar
12 votes
2 answers
2k views

Using DeskTop for basic project management

I would like to use DeskTop for basic project management, i.e. opening a set of buffers and restore histories depending on the project I am working on. Is this possible, i.e. having one desktop file ...
Rainer's user avatar
  • 907
12 votes
2 answers
3k 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 ...
lukas.pukenis's user avatar
10 votes
1 answer
6k views

How to open a folder as project in emacs?

VSCode (and other graphical editors) allow you to open any folder, and all source files in that folder are already tagged such that you can jump to definitions of functions/objects as long as the ...
archmuon's user avatar
  • 143
7 votes
0 answers
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-...
pawel's user avatar
  • 171
6 votes
2 answers
3k views

Simple project management---org-mode, or another tool?

I'm a beginning emacs and org-mode user interested in the mode for personal project management. For example, I have a database of photo images: 2014-10-steven-and-his-cats.jpg 2014-10-steven-author-...
Steven Arntson's user avatar
5 votes
1 answer
1k 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/...
R. P. Dillon's user avatar
5 votes
2 answers
1k views

project.el: override project root with dir-local var?

I have a situation where (project-current) gets the project root "wrong", i.e. not what I want it to be - specifically the project is part of a larger project that project.el doesn't know about. Is ...
GaryO's user avatar
  • 496
4 votes
4 answers
809 views

Set author per repository

I work on both work and personal projects on my machine, and for my work projects, I prefer to use my work email, and vice versa. In shell, I use direnv to set GIT_COMMITTER_EMAIL and ...
zsquare's user avatar
  • 141
3 votes
1 answer
1k views

Change C indent style for specific project?

I have in my ~/.emacs.d/init.el: (use-package google-c-style ;; provides the Google C/C++ coding style :ensure t :config (add-hook 'c-mode-common-hook 'google-set-c-style)) However, a ...
space_voyager's user avatar
3 votes
2 answers
130 views

Emacs "context" plugin for switching between different tasks in one project without loosing concentration

PyCharm (and other JetBrains products) has wonderful feature — "contexts". You can configure task server (e.g Github Issue Tracker, Redmine, Trello, etc or use built-in one). When you switch task ...
Anton Linevych's user avatar
3 votes
0 answers
141 views

Help: delete-other-windows only working from the original window

Overview I'm having trouble understanding from my current config why C-x 1 (i.e., M-x delete-other-windows) does not work when executed from a window in a project that was created as a result of ...
ldeck's user avatar
  • 215
2 votes
1 answer
680 views

Projectile buffer names with project relative filenames

I have a largish project with many hundreds of source files involved, and duplicate filenames. I would like to set the buffer names (automatically) to the (projectile) project relative path, instead ...
Michael's user avatar
  • 151
2 votes
1 answer
50 views

How change name of file "projects" and set it in init.el?

Emacs 27.2 In ~/.emacs.d/projects This file content all my projects. press d But I need to change file name. E.g. projects-laptop. Is it possible and and set it name on init.el file? P.S. For ...
a_subscriber's user avatar
  • 3,916
2 votes
2 answers
4k views

How to use xref-find-references on Elisp files without "No references found for" errors

I am using GNU Emacs 26.3 on Ubuntu 19.10. I have a directory full of Emacs Lisp files with the .el file extension. All of them are loaded into the currently running Emacs. I can open up one of ...
bgoodr's user avatar
  • 339
2 votes
2 answers
708 views

C Source code browsing similar to eclipse

Currently I am using eclipse to browse cross compiled C source code. I don't have back end cross compiler to actually compile and build the code. But eclipse create source browse tree. I want to have ...
prasad's user avatar
  • 121
2 votes
2 answers
252 views

Command to automatically define a resource variable in an Android project

When coding Android projects, resource variables are somewhat cumbersome to define, as they involve visiting a file far away in the directory structure and writing xml(!). Say I want to define a ...
Malabarba's user avatar
  • 23k
2 votes
0 answers
54 views

"fileloop-next-file: Read error: Is a directory" when running project-query-replace-regexp

Hitting this error when trying to run project-query-replace-regexp. The project I'm working under has git submodules, if that could cause any issues? (Redacted some of the directories and search ...
abroekhof's user avatar
  • 173
2 votes
0 answers
656 views

Navigate C/C++ Source Code with Emacs [closed]

So, i'm finally starting to work with a multi-file Project in C++ and am in need for smart navigation and completion! So far, i've used company-mode (with irony and company-headers), which is great if ...
Tim Hilt's user avatar
  • 297
2 votes
0 answers
483 views

Saving and restoring mutiple window layouts

I'm using the latest version of Emacs on Linux. I'm having trouble saving and restoring various window layouts and buffer states across multiple projects. For example: Project A: 3 window layout / 3 ...
rustynail's user avatar
1 vote
3 answers
2k views

Projectile switch between opened projects

I often have to work with multiple related projects and switching between them can become hard. I use counsel-projectile and it really makes everything easier. To be clear, I am not talking about ...
sigan's user avatar
  • 11
1 vote
3 answers
462 views

Finding in certain projects only files with particular extensions when doing a project(ile) grep

I have projects where *.nim files are the source files and *.js files are the "compiled" files. When I issue projectile-grep (or project-find-regexp) in these projects I get both source and ...
halloleo's user avatar
  • 1,311
1 vote
1 answer
609 views

How do I bind C-x p to the project.el project-prefix-map?

Following the advice of Mastering Emacs I'm trying to use the project.el package. My problem is that C-x p isn't bound to the prefix keymap and I can't figure out how to bind it correctly. I'm pretty ...
afrosteve's user avatar
  • 131
1 vote
2 answers
171 views

Setup find-file-at-point to treat tilde as project root

A JavaScript project is setup with webpack path resolver like this: resolve: { alias: { '~': path.resolve(cwd, 'src') } }, This has the effect that a line in c:/...
Arry's user avatar
  • 203
1 vote
2 answers
265 views

project-find-file completion and navigation

I am learning to use project-find-file. I know there are better alternatives in melpa, but I would like to learn the "out of the box" functionality. When I do project-find-file, start typing ...
Gauthier's user avatar
  • 499
1 vote
1 answer
503 views

project.el: override project-find-regexp with use-package to show live results like project-find-file (preferably with consult)?

When switching projects, there's a few commands available off the bat that can be selected from the mini-buffer after selecting a project. [f] Find file [g] Find regexp [d] Find directory ... Both ...
ldeck's user avatar
  • 215
1 vote
1 answer
191 views

Org-capture template extension with project name

I am struggling to setup an org-capture template which captures the current projects name from where it is called. Just like ‘%f’ File visited by current buffer when org-capture was called. I am ...
grszkthfr's user avatar
1 vote
1 answer
645 views

EDE load project

I'm running emacs 24.5.1 under windows 7 and I'm trying to figure out how EDE works and I have a problem, I don't understand how to load the project. I've created Project.ede file like: ;; Object ...
Dmitry's user avatar
  • 213
0 votes
2 answers
471 views

How to export a gantt chart in pdf or png format using taskjuggler and/or org-mode

I managed to get taskjuggler up and running along emacs/org-mode. After reading the manual entries here and here I can export my project into html but I cannot export the Gantt chart into pdf, as ...
Ajned's user avatar
  • 672
0 votes
1 answer
150 views

How can I change the default shell Project.el uses?

I use Emacs’ builtin project management and really like it, but am also a vterm user and would like this to be the shell that opens when I run project-shell. Is there a way to set this, or else would ...
tsvallender's user avatar
0 votes
1 answer
114 views

"VC method not implemented for backend" for project-find call

I am trying out project based search via project-find-regexp, but I get the error: vc-call-backend: VC method not implemented for backend: find-ignore-file, CVS How can I fix this? I assume this is a ...
halloleo's user avatar
  • 1,311
0 votes
1 answer
822 views

Why are my dir-locals always malformed

I was reading about dir-locals and wanted to set up per project settings. However whatever I try results in a malformed function. Why is this ? .dir-locals.el:4:1:Warning: ‘(php-mode (php-executable ....
Oly's user avatar
  • 593
0 votes
0 answers
22 views

How can I find references to symbols in a project?

I've generated a TAGS file, which holds all my symbols. I'm not sure I understand how xref-find-references is supposed to work, but I only get results on symbols that exists in the current buffer. Is ...
Jason Hunter's user avatar
0 votes
0 answers
36 views

How do I create a project tree from yasnippet

I have built a project prototype as a module in a directory tree in the following example: module main.ext module_feature item.ext another_item.ext I would like to insert the module ...
alexander's user avatar
  • 133
0 votes
1 answer
76 views

Option similar to `vc-directory-exclusion-list` but for files create by build tools

I'm missing an option variable similar to vc-directory-exclusion-list that holds of a list of auto-generated directory names that contain temporary files that are typically but not exlusively created ...
Nordlöw's user avatar
  • 497
0 votes
0 answers
289 views

"Wrong type argument" adding projects to treemacs

I'm just setting up Treemacs for the first time. I am using Emacs' built in project management (not Projectile) and ideally want Treemacs to always show only the current project. Currently, if I run ...
tsvallender's user avatar
0 votes
0 answers
136 views

Close all open Magit buffers when opening a new project

When using Magit, the multitude of buffers can become a bit confusing when switching buffers. Therefore I prefer to have only one git-repository open in Magit. My current procedure of switching to ...
Harald's user avatar
  • 220
0 votes
0 answers
78 views

Why doesn't project-query-replace-regexp work well

It seems promising to have a built-in function that performs this action: find and replace all matching text recursively, within your project. The problem is that it doesn't seem consistent. I am ...
mcp's user avatar
  • 536
0 votes
1 answer
357 views

NeoTree: Open to CWD of Buffer

Occasionally when I'm navigating around I want Neotree to jump to the folder of the file I'm working in, but when I open Neotree it's still the last place I left it. I can't find any function with M-...
Justin Thomas's user avatar
0 votes
0 answers
89 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 ...
Kukunin's user avatar
  • 151