emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Auto-open playlist


From: absinthium
Subject: Auto-open playlist
Date: Sun, 06 Oct 2024 18:57:58 -0500

Hello,

   I created a :hook to automatically invoke a pop-up playlist when
emms-browser is opened. It worked before but recently seemed to have quit
functioning. Perhaps, I edited the code and broke it but I'd
appreciate any help getting the functionality back. I receive an error
along the lines of: no current EMMS buffer. Here is the code
within (use-package emms):

:hook
 (emms-browser-show-display . (lambda ()
                                 ;; Pop-out playlist when emms-browser is 
invoked
                                 (when (string-match "Browsing by:*"
                                                     (buffer-name 
(window-buffer (selected-window))))
                                  (emms-playlist-mode-go-popup))

                                 ;; Wait for playlist to load, then clear it, 
and hide the mode line
                                 (when (string-match "^.*\\*EMMS Playlist\\*.*$"
                                                     (buffer-name 
(window-buffer (selected-window))))
                                   (setq mode-line-format nil)
                                   (emms-browser-clear-playlist)
                                   ;; Select emms-browser and hide the mode 
line there as well
                                   (other-window 1)
                                   (setq line-number-mode nil))))

Thanks for any help.

Regards,
V.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]