Questions tagged [project]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
37 votes
5 answers
20k 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 ...
user avatar
  • 22.4k
14 votes
4 answers
14k 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 ...
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 ...
user avatar
  • 877
12 votes
2 answers
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 ...
user avatar
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-...
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-...
user avatar
6 votes
1 answer
4k 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 ...
user avatar
  • 103
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/...
user avatar
3 votes
4 answers
682 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 ...
user avatar
  • 131
3 votes
2 answers
449 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 ...
user avatar
  • 406
3 votes
2 answers
106 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 ...
user avatar
2 votes
1 answer
934 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 ...
user avatar
2 votes
1 answer
626 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 ...
user avatar
  • 151
2 votes
2 answers
682 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 ...
user avatar
  • 121
2 votes
2 answers
241 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 ...
user avatar
  • 22.4k
2 votes
0 answers
571 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 ...
user avatar
  • 277
2 votes
0 answers
403 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 ...
user avatar
1 vote
3 answers
1k 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 ...
user avatar
  • 11
1 vote
1 answer
27 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 ...
user avatar
  • 3,425
1 vote
3 answers
137 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 ...
user avatar
  • 1,041
1 vote
2 answers
136 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:/...
user avatar
  • 193
1 vote
1 answer
28 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 ...
user avatar
  • 85
1 vote
1 answer
57 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 ...
user avatar
1 vote
0 answers
19 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 ...
user avatar
  • 163
0 votes
2 answers
215 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 ...
user avatar
  • 566
0 votes
2 answers
2k 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 ...
user avatar
  • 269
0 votes
1 answer
51 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 ...
user avatar
  • 1,041
0 votes
1 answer
742 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 ....
user avatar
  • 503
0 votes
1 answer
20 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 ...
user avatar
  • 415
0 votes
0 answers
36 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 ...
user avatar
0 votes
0 answers
48 views

How to define multiple `compile-command`s?

I've been searching for a while now and even tried to code it myself, but I somehow can't get it done. For several projects I am confronted with, it is not enough to only have one compile-command. I ...
user avatar
  • 73
0 votes
0 answers
41 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 ...
user avatar
  • 133
0 votes
0 answers
30 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 ...
user avatar
0 votes
1 answer
175 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-...
user avatar
0 votes
1 answer
593 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 ...
user avatar
  • 203
0 votes
0 answers
88 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 ...
user avatar
  • 151