My .emacs has this little function I sometimes use from the Emms
playlist. It googles for the current Emms playlist track:

(defun google-for-track ()
  (interactive)  
  (let* ((idx (emms-pbi-return-current-line-index))
   (search-str (concat "http://www.google.com/search?hl=en&q=";
                            (subst-char-in-string " " "+"
                                                  (emms-playlist-get idx))
                     "&btnG=Google+Search")))
    (browse-url-firefox-new-tab search-str)))

Where `browse-url-firefox-new-tab' is a small function to make an
existing firefox open the link in a new tab.

-- 
"Cut your own wood and it will warm you twice"


_______________________________________________
Emms-help mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emms-help

Reply via email to