aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init/ycp-emms.el
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-01-28 19:51:55 +1100
committerYuchen Pei <id@ypei.org>2025-01-28 19:51:55 +1100
commit8c8a175bfe767013186cdd92b13b3ad18d841f05 (patch)
tree78355310e1d521818ede40ac02c8794e5e102bad /emacs/.emacs.d/init/ycp-emms.el
parent8a6dee3d04d5963cb85c8dcee387a1bc0617d90e (diff)
[emacs] Make emms make proportional choice when selecting a random album
Previously, it selects a random album from the list of albums, regardless of number of tracks in the album. Now it first goes to a random line in the playlist, then finds the first track in the same album.
Diffstat (limited to 'emacs/.emacs.d/init/ycp-emms.el')
-rw-r--r--emacs/.emacs.d/init/ycp-emms.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init/ycp-emms.el b/emacs/.emacs.d/init/ycp-emms.el
index 08c9d92..b2e8382 100644
--- a/emacs/.emacs.d/init/ycp-emms.el
+++ b/emacs/.emacs.d/init/ycp-emms.el
@@ -81,7 +81,7 @@
"C-<return>" #'my-emms-playlist-mode-make-current
"w" #'my-emms-playlist-kill-track-name-at-point
"D" #'my-emms-playlist-delete-at-point
- "R" #'my-emms-random-album
+ "R" #'my-emms-playlist-random-album
"N" #'my-emms-next-track-or-random-album
)
(add-hook 'emms-player-started-hook 'my-emms-maybe-seek-to-last-played)