Refactor doom*projectile-locate-dominating-file
This commit is contained in:
parent
9e24db7ed3
commit
0085d089f3
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@
|
||||||
;; TODO Is this still necessary?
|
;; TODO Is this still necessary?
|
||||||
(defun doom*projectile-locate-dominating-file (orig-fn file name)
|
(defun doom*projectile-locate-dominating-file (orig-fn file name)
|
||||||
"Don't traverse the file system if on a remote connection."
|
"Don't traverse the file system if on a remote connection."
|
||||||
(unless (file-remote-p default-directory)
|
(when (and (stringp file)
|
||||||
|
(not (file-remote-p file)))
|
||||||
(funcall orig-fn file name)))
|
(funcall orig-fn file name)))
|
||||||
(advice-add #'projectile-locate-dominating-file :around #'doom*projectile-locate-dominating-file)
|
(advice-add #'projectile-locate-dominating-file :around #'doom*projectile-locate-dominating-file)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue