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

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

Re: Open Hypspec with w3m


From: Stefan Monnier
Subject: Re: Open Hypspec with w3m
Date: Fri, 28 Jan 2011 18:05:34 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> So is there a way to override 'hyperspec-lookup so that it always
> behaves as if browse-url-browser-function was 'w3m-browse-url?

You can use defadvice (with `around' advice) on hyperspec-lookup to
let-bind browse-url-browser-function for the duration of that function.


        Stefan


PS: Another attack vector is to globally set browse-url-browser-function
to a function that either invokes emacs-23m or firefox depending on
the URL.  Some Emacs maintainer I know might even be willing to accept
patches to provide such a feature more generally, e.g. via
a configuration variable that lists URL patterns that should use
emacs-w3m.


reply via email to

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