From 672458a898250389444a4a41a8384b9a8e3ec942 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sun, 12 Jan 2025 19:54:55 +1100 Subject: [emacs] Add more infobox commands info box support for exiftool, pacman, calibredb, github also fix a bug in my-emms-wrapped --- emacs/.emacs.d/lisp/my/my-emms.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'emacs/.emacs.d/lisp/my/my-emms.el') diff --git a/emacs/.emacs.d/lisp/my/my-emms.el b/emacs/.emacs.d/lisp/my/my-emms.el index 03392be..fd3c73d 100644 --- a/emacs/.emacs.d/lisp/my/my-emms.el +++ b/emacs/.emacs.d/lisp/my/my-emms.el @@ -517,8 +517,8 @@ If the last command is `emms-playlist-mode-play-smart', then set (let (keys) (maphash (lambda (k _) (push k keys)) emms-score-hash) (sort keys (lambda (k1 k2) - (< (second (gethash k1 emms-score-hash)) - (second (gethash k2 emms-score-hash))))) + (> (cl-second (gethash k1 emms-score-hash)) + (cl-second (gethash k2 emms-score-hash))))) (message "Top 5: %s" (string-join (take 5 keys) "\n")))) (provide 'my-emms) -- cgit v1.2.3