aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/lisp/my/my-emms.el
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-01-12 19:54:55 +1100
committerYuchen Pei <id@ypei.org>2025-01-12 19:54:55 +1100
commit672458a898250389444a4a41a8384b9a8e3ec942 (patch)
tree082c649a576e687f5dd20a4ca27b55186455b905 /emacs/.emacs.d/lisp/my/my-emms.el
parent264fae53a90395463f65561c2a6ac6f194521abd (diff)
[emacs] Add more infobox commands
info box support for exiftool, pacman, calibredb, github also fix a bug in my-emms-wrapped
Diffstat (limited to 'emacs/.emacs.d/lisp/my/my-emms.el')
-rw-r--r--emacs/.emacs.d/lisp/my/my-emms.el4
1 files changed, 2 insertions, 2 deletions
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)