From 3c7b64c5b059742c79b94cc4b01ba9a90caed97a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=A1l=20Germ=C3=A1n=20Guti=C3=A9rrez=20Calder=C3=B3n?= Date: Mon, 22 Jun 2020 11:37:11 -0500 Subject: [PATCH] Enable projectile-locate-dominating-file on tramp --- core/core-projects.el | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/core/core-projects.el b/core/core-projects.el index 8b185f487..e0c766d3b 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -190,16 +190,7 @@ when using many of projectile's command, e.g. `projectile-compile-command', This suppresses the error so these commands will still run, but prompt you for the command instead." :around #'projectile-default-generic-command - (ignore-errors (apply orig-fn args))) - - ;; Projectile root-searching functions can cause an infinite loop on TRAMP - ;; connections, so disable them. - ;; TODO Is this still necessary? - (defadvice! doom--projectile-locate-dominating-file-a (file _name) - "Don't traverse the file system if on a remote connection." - :before-while #'projectile-locate-dominating-file - (and (stringp file) - (not (file-remote-p file nil t))))) + (ignore-errors (apply orig-fn args)))) ;;