mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Revise comments & docstring
This commit is contained in:
@ -99,15 +99,15 @@ c) are not valid projectile projects."
|
|||||||
(advice-add #'projectile-locate-dominating-file :around #'doom*projectile-locate-dominating-file)
|
(advice-add #'projectile-locate-dominating-file :around #'doom*projectile-locate-dominating-file)
|
||||||
|
|
||||||
(cond
|
(cond
|
||||||
;; If fd exists, use it for git and generic projects. fd is a rust program
|
;; If fd exists, use it for git and generic projects. fd is a rust program
|
||||||
;; that is significantly faster and respects .gitignore. This is recommended
|
;; 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.
|
||||||
((executable-find doom-projectile-fd-binary)
|
((executable-find doom-projectile-fd-binary)
|
||||||
(setq projectile-git-command (concat
|
(setq projectile-git-command (concat
|
||||||
doom-projectile-fd-binary
|
doom-projectile-fd-binary
|
||||||
" . --color=never --type f -0 -H -E .git")
|
" . --color=never --type f -0 -H -E .git")
|
||||||
projectile-generic-command projectile-git-command))
|
projectile-generic-command projectile-git-command))
|
||||||
|
|
||||||
;; Otherwise, resort to ripgrep, which is also faster than find
|
;; Otherwise, resort to ripgrep, which is also faster than find
|
||||||
((executable-find "rg")
|
((executable-find "rg")
|
||||||
(setq projectile-generic-command
|
(setq projectile-generic-command
|
||||||
|
@ -108,6 +108,7 @@ Uses `+workspaces-main' to determine the name of the main workspace."
|
|||||||
(add-hook 'persp-mode-hook #'+workspaces|init-persp-mode)
|
(add-hook 'persp-mode-hook #'+workspaces|init-persp-mode)
|
||||||
|
|
||||||
(defun +workspaces|leave-nil-perspective (&rest _)
|
(defun +workspaces|leave-nil-perspective (&rest _)
|
||||||
|
"Ensure that Doom is never in the nil perspective."
|
||||||
(when (string= (+workspace-current-name) persp-nil-name)
|
(when (string= (+workspace-current-name) persp-nil-name)
|
||||||
(+workspace-switch (or (if (+workspace-p +workspace--last) +workspace--last)
|
(+workspace-switch (or (if (+workspace-p +workspace--last) +workspace--last)
|
||||||
(car (+workspace-list-names))
|
(car (+workspace-list-names))
|
||||||
|
Reference in New Issue
Block a user