help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to setup w3m-el as a default browser on GNU system?


From: Tim X
Subject: Re: How to setup w3m-el as a default browser on GNU system?
Date: Wed, 08 Dec 2010 15:14:46 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Paul Chany <csanyipal@gmail.com> writes:

> Pedro Insua <pedroinsua@gmail.com> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]