Refactor doom*projectile-locate-dominating-file

This commit is contained in:
Henrik Lissner
2019-03-28 16:43:04 -04:00
parent 9e24db7ed3
commit 0085d089f3

View File

@ -53,7 +53,8 @@
;; connections, so disable them.
;; TODO Is this still necessary?
(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."
(when (and (stringp file)
(not (file-remote-p file)))
(funcall orig-fn file name)))
(advice-add #'projectile-locate-dominating-file :around #'doom*projectile-locate-dominating-file)