From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: How to setup w3m-el as a default browser on GNU system? Date: Fri, 18 Jun 2010 08:15:45 +1000 Organization: Rapt Technologies Message-ID: <871vc52tm6.fsf@rapttech.com.au> References: <87k4pxkbjd.fsf@debian-laptop.localdomain> <20100617170705.GA4799@Zsdrums> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291836824 5721 80.91.229.12 (8 Dec 2010 19:33:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 19:33:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 20:33:40 2010 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.69) (envelope-from ) id 1PQPlj-0004qe-Ln for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 20:33:39 +0100 Original-Received: from localhost ([127.0.0.1]:49811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQPli-0003Ty-TK for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 14:33:39 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:h5cCcWZgRbZ4ciGS2TP3GtsB2Mw= Original-Lines: 46 Original-NNTP-Posting-Host: 5197b79a.news.astraweb.com Original-X-Trace: DXC=a=hJ^k82lmKmRUYobjn7jFL?0kYOcDh@J5RIWMIBb; `EE^ZA\hJ`SILi@I_>ej_dKBH8SBHG9eafL Original-Xref: usenet.stanford.edu gnu.emacs.help:179080 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:75895 Archived-At: Paul Chany writes: > Pedro Insua writes: > >> On Thu, Jun 17, 2010 at 03:56:38PM +0200, Paul Chany wrote: >>> I need this setup because when in org-mode and want follow a link to a >>> file://path/some.html then an xterm being started and on it w3m as a >>> default browser. I try to setup Emacs and org-mode to open this file in >>> Emacs buffer in w3m-el but without any success. What am I missing here? >> >> Take a look at: >> >> http://www.emacswiki.org/emacs/BrowseUrl > > Thanks! I follow advices red here and setup variables: > ‘browse-url-browser-function’ > ‘browse-url-generic-program’ > >> Or put in your .emacs file something like: >> >> '(browse-url-browser-function (quote w3m)) > > I have now in my .emacs file: > '(browse-url-browser-function (quote w3m-browse-url)) > '(browse-url-generic-program "w3m-browse-url") > > and still when I C-c C-o on a file://path/some.html link, an xterm > appeare and on it w3m with the opened file! :( > > What am I missing here? There are two ways to use w3m. One way is to have it run stand-alone inside an xterm and the other is to have it run inside emacs via the w3m-el package. You currently have the customizeation for running w3m stand-alone inside an xterm. 1. Make sure you have the w3m-el-snapshot package installed. 2. Use customize-variable to set browse-url-browser-function to w3m-browse-url Tim -- tcross (at) rapttech dot com dot au