Ignore remote/temp files or packages as projects
This commit is contained in:
parent
0ebd58c991
commit
f8d181a8c4
2 changed files with 9 additions and 1 deletions
|
@ -142,3 +142,10 @@ If DIR is not a project, it will be indexed (but not cached)."
|
|||
((doom-module-p :completion 'helm)
|
||||
#'helm-find-files)
|
||||
(#'find-file)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-project-ignored-p (project-root)
|
||||
"Return non-nil if remote or temporary file, or a straight package."
|
||||
(or (file-remote-p project-root)
|
||||
(file-in-directory-p project-root temporary-file-directory)
|
||||
(file-in-directory-p project-root doom-local-dir)))
|
||||
|
|
|
@ -34,7 +34,8 @@ debian, and derivatives). On most it's 'fd'.")
|
|||
projectile-globally-ignored-file-suffixes '(".elc" ".pyc" ".o")
|
||||
projectile-kill-buffers-filter 'kill-only-files
|
||||
projectile-known-projects-file (concat doom-cache-dir "projectile.projects")
|
||||
projectile-ignored-projects '("~/" "/tmp"))
|
||||
projectile-ignored-projects (list "~/" temporary-file-directory)
|
||||
projectile-ignored-project-function #'doom-project-ignored-p)
|
||||
|
||||
(global-set-key [remap evil-jump-to-tag] #'projectile-find-tag)
|
||||
(global-set-key [remap find-tag] #'projectile-find-tag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue