aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init/ycp-emms.el
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-01-06 23:04:35 +1100
committerYuchen Pei <id@ypei.org>2025-01-06 23:04:35 +1100
commita32df57496361ffd72c68e1e135439d0ec6ec87f (patch)
treefde02412f665ae12623c31bb2012204c89c5af06 /emacs/.emacs.d/init/ycp-emms.el
parent48a5e69b515861127f566110a1f82711633dcf33 (diff)
[emacs] Start emms scoringHEADmaster
When a track finishes, score up by 1. When a track is manually chosen, set the score delta to 2. Added a function my-emms-wrapped that prints the top 5 scored tracks.
Diffstat (limited to 'emacs/.emacs.d/init/ycp-emms.el')
-rw-r--r--emacs/.emacs.d/init/ycp-emms.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init/ycp-emms.el b/emacs/.emacs.d/init/ycp-emms.el
index a3a4604..458a6b0 100644
--- a/emacs/.emacs.d/init/ycp-emms.el
+++ b/emacs/.emacs.d/init/ycp-emms.el
@@ -90,6 +90,8 @@
(my-override emms-mode-line-toggle)
(add-hook 'emms-playlist-selection-changed-hook
'my-emms-output-current-track-to-i3bar-file)
+ (add-hook 'emms-player-finished-hook 'my-emms-score-up-playing)
+ (add-hook 'emms-player-started-hook 'my-emms-score-up-chosen-bonus)
(setq emms-player-next-function 'my-emms-next-track-or-random-album)
(setq emms-players-preference-f 'my-emms-players-preference)
(my-keybind dired-mode-map "e" #'my-dired-add-to-emms)