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

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

Re: browse-url and URL type dependent actions


From: Crni Gorac
Subject: Re: browse-url and URL type dependent actions
Date: Sun, 29 Mar 2009 05:55:47 -0700 (PDT)
User-agent: G2/1.0

On Mar 28, 12:49 am, Crni Gorac <cgo...@gmail.com> wrote:
> Am trying to change my ~/.emacs so that browse-url will start mutt on
> "mailto:"; links, and Firefox on other types of links.  There is an
> example in browse-url source code:
>  (setq browse-url-browser-function '(("^mailto:"; . browse-url-mail)
>                                           ("." . browse-url-firefox)))
> However, instead of "browse-url-mail", I think I'd need to put "browse-
> url-generic" in, and then also somehow to direct this function that
> mutt should be launched (probably trough somehow setting "browse-url-
> generic-program" and "browse-url-generic-args", preferably in some
> kind of localized manner).  Any suggestion on how to accomplish this
> properly?

In the meantime, came up with following:
    (setq browse-url-generic-program "/usr/bin/xterm")
    (setq browse-url-generic-args '("-e" "mutt"))
    (setq browse-url-browser-function '(("^mailto:"; . browse-url-
generic)
                                        ("." . browse-url-firefox)))
which works fine.  Now, I'm wondering is it possible to somehow made
these assignments to "browse-url-generic-program" and "browse-url-
generic-args" to be "local" for handling "mailto" case?  What if I
want multiple cases, and want to use different "generic" browsers for
them?

Thanks.


reply via email to

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