mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Refactor doom*projectile-locate-dominating-file
This commit is contained in:
@ -53,7 +53,8 @@
|
|||||||
;; connections, so disable them.
|
;; connections, so disable them.
|
||||||
;; 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."
|
||||||
|
(when (and (stringp file)
|
||||||
(not (file-remote-p 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)
|
||||||
|
Reference in New Issue
Block a user