From 8c8a175bfe767013186cdd92b13b3ad18d841f05 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Tue, 28 Jan 2025 19:51:55 +1100 Subject: [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. --- emacs/.emacs.d/init/ycp-emms.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emacs/.emacs.d/init/ycp-emms.el') 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-" #'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) -- cgit v1.2.3