From 67c5de0313a9bb1662058510e9778d0765ae38b7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 13 Jun 2020 17:13:38 -0400 Subject: [PATCH] Change :around advice to :override --- core/core-projects.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-projects.el b/core/core-projects.el index 968f37924..9385bae89 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -133,10 +133,10 @@ c) are not valid projectile projects." ;; HACK Don't rely on VCS-specific commands to generate our file lists. That's ;; 7 commands to maintain, versus the more generic, reliable and ;; performant `fd' or `ripgrep'. - (defadvice! doom--only-use-generic-command-a (orig-fn vcs) + (defadvice! doom--only-use-generic-command-a (vcs) "Only use `projectile-generic-command' for indexing project files. And if it's a function, evaluate it." - :around #'projectile-get-ext-command + :override #'projectile-get-ext-command (if (functionp projectile-generic-command) (funcall projectile-generic-command vcs) projectile-generic-command))