diff options
author | jao <jao@gnu.org> | 2021-11-06 23:44:46 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-11-06 23:44:46 +0000 |
commit | a17448a48af5d45353a3d966669e6e27ac948c3d (patch) | |
tree | 045a6dc1114a3d1b9e2d1ce41b3bfb601867dc5a /lib | |
parent | 7fd203ccf8a8bd213839f53dc00bc14736fec83c (diff) | |
download | elibs-a17448a48af5d45353a3d966669e6e27ac948c3d.tar.gz elibs-a17448a48af5d45353a3d966669e6e27ac948c3d.tar.bz2 |
nits
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 |