diff --git a/counsel-projectile.el b/counsel-projectile.el index 00bf8ea..b47d304 100644 --- a/counsel-projectile.el +++ b/counsel-projectile.el @@ -511,8 +511,8 @@ This simply applies the same transformer as in `ivy-switch-buffer', which is `iv :keymap counsel-projectile-switch-to-buffer-map :caller 'counsel-projectile-switch-to-buffer)) -(unless (assq #'counsel-projectile-switch-to-buffer ivy-sort-functions-alist) - (push (list #'counsel-projectile-switch-to-buffer) ivy-sort-functions-alist)) +(unless (assq #'counsel-projectile--project-buffers ivy-sort-functions-alist) + (push (list #'counsel-projectile--project-buffers) ivy-sort-functions-alist)) (ivy-set-display-transformer 'counsel-projectile-switch-to-buffer @@ -1242,8 +1242,8 @@ If not inside a project, call `counsel-projectile-switch-project'." :keymap counsel-projectile-map :caller 'counsel-projectile))) -(unless (assq #'counsel-projectile ivy-sort-functions-alist) - (push (list #'counsel-projectile) ivy-sort-functions-alist)) +(unless (assq #'counsel-projectile--project-buffers-and-files ivy-sort-functions-alist) + (push (list #'counsel-projectile--project-buffers-and-files) ivy-sort-functions-alist)) (ivy-set-display-transformer 'counsel-projectile