From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kMDVFZQEql63cAAA0tVLHw (envelope-from ) for ; Wed, 29 Apr 2020 22:49:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gI4UMpwEql4XOAAA1q6Kng (envelope-from ) for ; Wed, 29 Apr 2020 22:50:04 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2789894332B for ; Wed, 29 Apr 2020 22:50:02 +0000 (UTC) Received: from localhost ([::1]:38780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTvWk-0005GM-3v for larch@yhetil.org; Wed, 29 Apr 2020 18:50:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39634) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTvWG-0005Fx-2a for emacs-orgmode@gnu.org; Wed, 29 Apr 2020 18:49:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTvWE-0005DB-P5 for emacs-orgmode@gnu.org; Wed, 29 Apr 2020 18:49:31 -0400 Received: from mout.perfora.net ([74.208.4.197]:55085) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTvWE-0005Bz-73 for emacs-orgmode@gnu.org; Wed, 29 Apr 2020 18:49:30 -0400 Received: from [192.168.24.2] ([69.142.220.70]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LiS30-1itlt432lw-00ck5n; Thu, 30 Apr 2020 00:49:26 +0200 Subject: Re: org-mode setting the browser with options To: Tim Cross , Jude DaShiell References: <87k11yrklj.fsf@gmail.com> From: Neil Cherry Autocrypt: addr=ncherry@linuxha.com; prefer-encrypt=mutual; keydata= mDMEXeDH+hYJKwYBBAHaRw8BAQdAQirJmkWB3TV+4OT1LdNet8ycO39N+GJvszPR+vquNM+0 GW5qYyA8bmNoZXJyeUBsaW51eGhhLmNvbT6IlgQTFggAPhYhBP1qkMI69h4X6AE6XbIDVCka H136BQJd4Mf6AhsDBQkJZgGABQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJELIDVCkaH136 HhoA/1y5Qmz2WE1j7UY5TZAus//7oB+kBwVrhZTQiJyPRCj/AQDqj+CjmCya5K+OXH/rsEov WxrQNkrUteSfjX4jcb2cDrg4BF3gx/oSCisGAQQBl1UBBQEBB0CBju/glr36yM6htPQg4lw5 JYxQmZ9EA7UIS+NhlwOWTgMBCAeIfgQYFggAJhYhBP1qkMI69h4X6AE6XbIDVCkaH136BQJd 4Mf6AhsMBQkJZgGAAAoJELIDVCkaH136m8MBAJnYBs6xPxMugJ5sK4lNUhiLntI4UYt7guuR ZFm7mr/sAP0TIaAqvUupMNkmcdcyIrMOElYaCCT2eumPUbZLrSDuAg== Message-ID: <89a27cb6-b793-421c-7ac6-7bc55ec31963@linuxha.com> Date: Wed, 29 Apr 2020 18:49:25 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <87k11yrklj.fsf@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Hk0chndVOGJHz/dFa7cwVVYe90q2pDBroHMt2CPtbKIbW5u3hPW k4mdfjFRzES2utyrWqIXYAoYGrtIa7oKpVeDogETZcxzOshq2H3iu8VQeq2smRG6fBTMcyg zhqh0yBpUqjk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=ncherry@linuxha.com; helo=mout.perfora.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/29 18:49:28 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Received-From: 74.208.4.197 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: -1.01 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [-1.01 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49354191253738]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.17), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; DWL_DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com,panix.com]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[ncherry@linuxha.com,emacs-orgmode-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; URIBL_BLOCKED(0.00)[linuxha.com:email,panix.com:email,gnu.org:email,linuxha.blogspot.com:url]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[linuxha.com]; HAS_LIST_UNSUB(-0.01)[]; RECEIVED_SPAMHAUS_PBL(0.00)[69.142.220.70:received]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: tmYaZruGmqZS On 4/29/20 6:30 PM, Tim Cross wrote: > > Jude DaShiell writes: > >> Two different scripts one yproxy and the other nproxy. >> Put the necessary running code in each. >> >> On Wed, 29 Apr 2020, Neil Cherry wrote: >> >>> Date: Wed, 29 Apr 2020 13:36:50 >>> From: Neil Cherry >>> To: Org Mode >>> Subject: org-mode setting the browser with options >>> >>> I need to use 2 different Windows browser (proxy and no-proxy is the reason). >>> >>> What I want to do is that if it's example.com use firefox (no options). If it's >>> example.org use chrome --no-proxy-server. I'm not exacly sure how to approach this. >>> >>> Thanks >>> >>> > > I would look at browse-url built-in package. With browse-url you can set > a function that will determine which browser to use based on the url and > you can set the options for each supported browser. > Thanks, that got me thinking and search-fu found: (setq browse-url-browser-function '( ("example\\.com" . browse-url-chrome) ("example\\.org" . browse-url-chrome) ("." . browse-url-default-browser) )) Which works perfect! Thanks -- Linux Home Automation Neil Cherry ncherry@linuxha.com http://www.linuxha.com/ Main site http://linuxha.blogspot.com/ My HA Blog Author of: Linux Smart Homes For Dummies