|
From: | Yoni Rabkin Katzenell |
Subject: | [emms-help] `google-for-track' from my .emacs |
Date: | Mon, 22 Aug 2005 17:59:30 +0300 |
User-agent: | Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
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"
[Prev in Thread] | Current Thread | [Next in Thread] |