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

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

Re: w3m - external browse


From: Hadron
Subject: Re: w3m - external browse
Date: Tue, 23 Jan 2007 21:50:30 +1300

Kevin Rodgers <kevin.d.rodgers@gmail.com> 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!


-- 


reply via email to

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