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

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

Re: w3m - external browse


From: Kevin Rodgers
Subject: Re: w3m - external browse
Date: Sun, 14 Jan 2007 22:35:08 -0700
User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207)

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)))

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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