From 80bff38fcb728af1c12839c97a8fb6eeb7f5f373 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 3 Nov 2018 18:29:06 +0100 Subject: [PATCH] [EMMS] Add comment explaining why we use a hook --- init.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.el b/init.el index 33e8479..6a695b9 100644 --- a/init.el +++ b/init.el @@ -1680,6 +1680,9 @@ are assumed to be of the form *.crt." (setq emms-source-file-directory-tree-function #'db/emms-source-file-directory-tree-find)) + ;; `emms-playlist-mode’ sets `emms-playlist-insert-track-function’, + ;; no matter what previous values or customization may say otherwise + ;; … so we need to employ a hook to change its value (add-hook 'emms-playlist-mode-hook (lambda () (setq emms-playlist-insert-track-function