mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix fd/rtags on debian/ubuntu
On debian/ubuntu, these executables have a different name: - fd -> fdfind - rc -> rtags-rc - rdm -> rtags-rdm
This commit is contained in:
@ -10,7 +10,8 @@ Emacs.")
|
||||
(defvar doom-projectile-cache-purge-non-projects nil
|
||||
"If non-nil, non-projects are purged from the cache on `kill-emacs-hook'.")
|
||||
|
||||
(defvar doom-projectile-fd-binary "fd"
|
||||
(defvar doom-projectile-fd-binary
|
||||
(cl-find-if #'executable-find '("fd" "fdfind"))
|
||||
"name of `fd-find' executable binary")
|
||||
|
||||
(defvar doom-projectile-cache-timer-file (concat doom-cache-dir "projectile.timers")
|
||||
@ -124,7 +125,7 @@ c) are not valid projectile projects."
|
||||
(cond
|
||||
;; If fd exists, use it for git and generic projects. fd is a rust program
|
||||
;; that is significantly faster than git ls-files or find, and it respects
|
||||
;; .gitignore. This is recommended in the projectile docs.
|
||||
;; .gitignore. This is recommended in the projectile docs.
|
||||
(doom-projectile-fd-binary
|
||||
(setq projectile-git-command (concat
|
||||
doom-projectile-fd-binary
|
||||
|
Reference in New Issue
Block a user