From a23167cc2ae83f4afb222e76c19db11f90ec50c0 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Thu, 11 May 2023 17:52:57 +0900 Subject: [PATCH] fix sort --- emacs.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/emacs.el b/emacs.el index f97c205..4e1b06c 100644 --- a/emacs.el +++ b/emacs.el @@ -530,10 +530,11 @@ Otherwize hook it." (define-key ctl-x-map (kbd "C-x") 'my-exchange-point-and-mark) (when (fboundp 'counsel-mark-ring) (define-key ctl-x-map "m" 'counsel-mark-ring)) -(with-eval-after-load 'ivy - (defvar ivy-sort-functions-alist) - (add-to-list 'ivy-sort-functions-alist - '(counsel-mark-ring))) +;; ? +;; (with-eval-after-load 'ivy +;; (defvar ivy-sort-functions-alist) +;; (add-to-list 'ivy-sort-functions-alist +;; '(counsel-mark-ring))) (run-with-idle-timer 10 t (lambda () (push-mark) @@ -1248,6 +1249,7 @@ THEM are function and its args." :history 'my-cousel-recently-history :preselect default-directory :action (lambda (x) (find-file x)) + :sort nil :caller 'my-counsel-recently)) (define-key ctl-x-map (kbd "C-r") 'my-counsel-recently)