[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: w3m browser in Emacs
From: |
Joe Fineman |
Subject: |
Re: w3m browser in Emacs |
Date: |
Sat, 20 Jun 2009 18:03:41 -0400 |
User-agent: |
Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (windows-nt) |
Sean Sieger <sean.sieger@gmail.com> writes:
> Joe Fineman <joe_f@verizon.net> writes:
>
> I have an Emacs command that, when I type C-c g, prompts for a
> word or phrase & looks it up in Google.
>
> May I have it?
(defun google (what)
"Use google to search for WHAT."
(interactive "sSearch: ")
(save-window-excursion
(delete-other-windows)
(let ((dir default-directory))
(w3m-browse-url (concat "http://www.google.com/search?q="
(w3m-url-encode-string what)))
(cd dir)
(recursive-edit))))
(global-set-key "\C-Cg" 'google)
--
--- Joe Fineman joe_f@verizon.net
||: The bottom line is in hell. :||
Message not available