emms-help
[Top][All Lists]
Advanced

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

[emms-help] Some functions to improve your EMMS Experience


From: Lucas
Subject: [emms-help] Some functions to improve your EMMS Experience
Date: Fri, 16 Apr 2004 21:54:55 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Hi !

Here are some function that i find useful :

(defun emms-add-directory-to-playlist (&optional dir)
  "Adds a directory to the current playlist."
  (interactive)
  (let* ((appended-dir  (emms-source-directory dir))
         (new-with-concat (vconcat emms-playlist appended-dir)))
    (emms-playlist-set-playlist new-with-concat)
    (emms-playlist-set-current (emms-playlist-get-current))))

(defun emms-google-for-lyrics ()
  "Opens a google search for the lyrics of the current track."
  (interactive)
  (browse-url
   (concat "http://www.google.com/search?q=";
           (replace-regexp-in-string " +" "+"
                                     (concat "lyrics "
                                             (delete ?- 
(emms-playlist-current)))))))



HTH

-- 
Lucas / Lukhas
EMMS l33t webm4st4




reply via email to

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