Skip to content

Is it possible to pin a project? #466

Answered by jcs090218
refaelsh asked this question in Q&A
Discussion options

You must be logged in to vote

Will I be able to modify this variable in my init.el?

Yes, you can. I use project.el (not projectile) so I will use this backend as the example:

project-known-project-roots (L1206) is the function that returns a list of project roots. Let's see the function's definition:

(defun project-known-project-roots ()
  "Return the list of root directories of all known projects."
  (project--ensure-read-project-list)
  (mapcar #'car project--list))  ; See `project--list`, this is the variable you want to modify!

Try to print the variable, and see what's the value:

(message "%s" project--list)  ; Returns -> (("path/to/project1") ("path/to/project2"))

Now, all you need to do is to sort this variabl…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jcs090218
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@refaelsh
Comment options

Answer selected by refaelsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy