[EMMS] Add comment explaining why we use a hook

This commit is contained in:
Daniel - 2018-11-03 18:29:06 +01:00
parent e7ab73a0cd
commit 80bff38fcb
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 3 additions and 0 deletions

View File

@ -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