Remove dash/f dependencies; use cl-lib & subr-x more
This commit is contained in:
parent
704099a7b9
commit
2d5d826177
11 changed files with 83 additions and 123 deletions
|
@ -33,8 +33,10 @@
|
|||
|
||||
(defun doom*projectile-cache-current-file (orig-fun &rest args)
|
||||
"Don't cache ignored files."
|
||||
(unless (--any (f-descendant-of? buffer-file-name it)
|
||||
(projectile-ignored-directories))
|
||||
(unless (cl-some (lambda (path)
|
||||
(string-prefix-p buffer-file-name
|
||||
(expand-file-name path)))
|
||||
(projectile-ignored-directories))
|
||||
(apply orig-fun args)))
|
||||
(advice-add 'projectile-cache-current-file :around 'doom*projectile-cache-current-file))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue