From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hadron Newsgroups: gmane.emacs.help Subject: Re: w3m - external browse Date: Tue, 23 Jan 2007 21:50:30 +1300 Message-ID: <87wt3ew2i1.fsf@gmail.com> References: <877ivqwtkx.fsf@gmail.com> <8764bagqty.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1169545394 1894 80.91.229.12 (23 Jan 2007 09:43:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Jan 2007 09:43:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 23 10:43:13 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H9IBM-0006lg-IQ for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Jan 2007 10:43:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9IBL-00059q-C4 for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Jan 2007 04:43:11 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-X-Trace: individual.net BufhK2SxRv9Ho1VgIdK2KwxctaH4J12nMlyTfm+Ngx9CZ7JnHH X-Orig-Path: news.inidividual.net!news X-Face: 2h#||Cd#d%F*NCm59[_6/{1a@jy%; |j>{D~4^gKg(^i%7j0IK?+,/GmW&:CD5fEKb_! Cancel-Lock: sha1:TYpqOIKAOwJYiZc7BTw5wMA3eqQ= Original-Xref: shelby.stanford.edu gnu.emacs.help:144947 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40551 Archived-At: Kevin Rodgers writes: > Hadron Quark wrote: >> I dont suppose some clever sod could provide the lisp I use on F4 to >> call the w3m function if its a w3m buffer or browse-url-firefox if not? >> >> (global-set-key (quote [f4]) 'browse-url-firefox) >> >> need to call >> >> w3m-view-url-with-external-browser >> >> if its a w3m buffer. >> >> Or would I be better off mapping f4 seperately to a w3m keyboard map? I >> dont want that as it would duplicate the existin "M" command. > > Keep the global binding, and override it with a local binding in w3m > buffers: > > (add-hook 'w3m-mode-hook > (lambda () > (local-set-key [f4] 'w3m-view-url-with-external-browser))) Sorry for the late appreciation, but thanks for this perfect solution! --