[Music] Allow for customizing automatic playlist function

master
Daniel Borchmann 4 years ago
parent ff06cddaba
commit 9b48edd77f
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
  1. 8
      init.el
  2. 2
      site-lisp/db-music.el

@ -2145,9 +2145,15 @@ search commands like `db/helm-shortcuts’."
(require 'helm-adaptive)))
(use-package db-music
:commands (db/play-playlist
:commands (db/play-playlist-from-cache
db/play-playlist-from-git-annex-tag
db/update-playlist-from-directory))
(defcustom db/playlist-play-function #'db/play-playlist-from-cache
"Function to use to automatically generate playlists"
:group 'personal-settings
:type 'function)
(defcustom db/playlist nil
"List of songs to include in a random playlist."
:group 'personal-settings

@ -6,7 +6,7 @@
(require 'emms)
(defun db/play-playlist ()
(defun db/play-playlist-from-cache ()
"Start playing songs from `db/playlist’"
(interactive)
(save-window-excursion

Loading…
Cancel
Save