General refactors & reformatting

This commit is contained in:
Henrik Lissner 2019-12-22 23:02:54 -05:00
parent 327d359fd3
commit 213a6fda86
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 15 additions and 15 deletions

View file

@ -157,7 +157,7 @@ c) are not valid projectile projects."
;; Fix breakage on windows in git projects with submodules, since Windows
;; doesn't have tr
((not (executable-find "tr"))
(IS-WINDOWS
(setq projectile-git-submodule-command nil)))
(defadvice! doom--projectile-cache-timers-a ()
@ -184,12 +184,11 @@ the command instead."
;; 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 (orig-fn file name)
(defadvice! doom--projectile-locate-dominating-file-a (file _name)
"Don't traverse the file system if on a remote connection."
:around #'projectile-locate-dominating-file
(when (and (stringp file)
(not (file-remote-p file nil t)))
(funcall orig-fn file name))))
:before-while #'projectile-locate-dominating-file
(and (stringp file)
(not (file-remote-p file nil t)))))
;;