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 KB4aIg/Pql5DMwAA0tVLHw (envelope-from ) for ; Thu, 30 Apr 2020 13:13:51 +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 JD3TDxjPql7rbgAA1q6Kng (envelope-from ) for ; Thu, 30 Apr 2020 13:14:00 +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 399B9942305 for ; Thu, 30 Apr 2020 13:13:59 +0000 (UTC) Received: from localhost ([::1]:44838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jU90o-0002qE-C9 for larch@yhetil.org; Thu, 30 Apr 2020 09:13:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43754) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jU8wc-000077-FJ for Emacs-orgmode@gnu.org; Thu, 30 Apr 2020 09:13:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jU8uc-0004O1-Ia for Emacs-orgmode@gnu.org; Thu, 30 Apr 2020 09:09:38 -0400 Received: from mout.perfora.net ([74.208.4.197]:39459) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jU8ub-0004LW-Rj for Emacs-orgmode@gnu.org; Thu, 30 Apr 2020 09:07:34 -0400 Received: from [192.168.24.2] ([69.142.220.70]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1MJVcC-1jjSsF3kqG-00Jo58 for ; Thu, 30 Apr 2020 15:07:32 +0200 Subject: Re: org-mode setting the browser with options From: Neil Cherry To: Org Mode References: <87k11yrklj.fsf@gmail.com> <89a27cb6-b793-421c-7ac6-7bc55ec31963@linuxha.com> 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: Date: Thu, 30 Apr 2020 09:07:30 -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: <89a27cb6-b793-421c-7ac6-7bc55ec31963@linuxha.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:n3jwDmnN8sfuR4mRFEO49wdqfRBjml1QYwTJqANUvCrxlBclYxM /3SKNFwwM8cIhZ9YKk9e4oA4Fg9K+PRxxaQvvyHtaSSEQtYNxrkg1kEl8IF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.197; envelope-from=ncherry@linuxha.com; helo=mout.perfora.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/30 09:07:32 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: 0.49 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 [0.49 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49434555627454]; MX_INVALID(1.00)[cached]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; 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)]; TO_DN_ALL(0.00)[]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[69.142.220.70:received]; 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)[]; URIBL_BLOCKED(0.00)[panix.com:email,gnu.org:email,linuxha.blogspot.com:url,linuxha.com:email]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; DMARC_NA(0.00)[linuxha.com]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; MIME_TRACE(0.00)[0:+]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: PPGrDuZFJaB0 On 4/29/20 6:49 PM, Neil Cherry wrote: > 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! Slight amendment, I think this code also helped: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(browse-url-browser-function (quote browse-url-default-browser)) '(browse-url-chrome-arguments (quote ("--no-proxy-server"))) '(browse-url-chrome-program "chrome") ) Note that the extra lines I'm referring to are the 3 browse-url-... lines in the custom-set-variables 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