From 1a9311e65c922e48c712b3a60e11690bb325a355 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Fri, 24 Jan 2020 22:30:14 +0900 Subject: [PATCH] Fix ivy sort --- emacs.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emacs.el b/emacs.el index 554ad49..d994d49 100644 --- a/emacs.el +++ b/emacs.el @@ -511,6 +511,12 @@ 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))) + (run-with-idle-timer 5 t + 'push-mark) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; title and mode-line