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
next 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
* 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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.