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
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)