unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Martin <mylists@kaffanke.at>
To: "help-gnu-emacs\@gnu.org" <help-gnu-emacs@gnu.org>
Subject: open in browser
Date: Fri, 27 Jan 2017 13:59:06 +0100	[thread overview]
Message-ID: <877f5ghd5x.fsf@kaffanke.at> (raw)

Hi there,

at the moment I'm using

;; (setq browse-url-browser-function 'browse-url-chromium)
(setq browse-url-browser-function 'browse-url-firefox)

to determine which browser to use within emacs.  For some reasons I
switch between firefox and chromium, and now I wonder if I could get
emacs to use the browser I'm using at the moment.  But I don't really
know where to start maybe you can help me.

I'm using arch linux with emacs 25.1.1 here.

If firefox is running (we can see it in proc maybe get it with ps) I
want emacs to open links in firefox and if chromium is running I want
emacs to open links in chromium.  And if both are running i would
prefer chromium.

How could a function for browse-url-browser-function look like for that
purpose?

Thanks,
Martin

--
Lösungen statt Diagnosen



             reply	other threads:[~2017-01-27 12:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-27 12:59 Martin [this message]
2017-01-27 18:16 ` open in browser John Mastro
2017-01-29 11:38   ` Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877f5ghd5x.fsf@kaffanke.at \
    --to=mylists@kaffanke.at \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).