diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/media/jao-mpc.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/media/jao-mpc.el b/lib/media/jao-mpc.el index c98b420..6b1e7ef 100644 --- a/lib/media/jao-mpc.el +++ b/lib/media/jao-mpc.el @@ -242,7 +242,7 @@ (when (jao-mpc--playing-p port) (jao-mpc--set-current-str port))) ;;;###autoload -(defun jao-mpc-setup (&optional secondary-port) +(defun jao-mpc-setup (&optional secondary-port priority) (setq jao-lyrics-info-function #'jao-mpc-lyrics-track-data) (jao-random-album-setup #'jao-mpc--album-buffer #'jao-mpc--add-and-play @@ -250,7 +250,10 @@ jao-notify-audio-icon) (jao-mpc-connect) (when secondary-port (jao-mpc-connect secondary-port)) - (jao-minibuffer-add-msg-variable 'jao-mpc-minibuffer-str 1)) + (when priority + (if (> priority 0) + (jao-minibuffer-add-variable 'jao-mpc-minibuffer-str priority) + (jao-minibuffer-add-msg-variable 'jao-mpc-minibuffer-str (- priority))))) (defvar jao-mpc--album-titles nil) (defconst jao-mpc--albums-cmd |