From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kAySOo9mLmPBpgAAbAwnHQ (envelope-from ) for ; Sat, 24 Sep 2022 04:08:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wEyGOo9mLmPNRgAAauVa8A (envelope-from ) for ; Sat, 24 Sep 2022 04:08:15 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.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 81BF08368 for ; Sat, 24 Sep 2022 04:08:15 +0200 (CEST) Received: from localhost ([::1]:47026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obuaU-0001pg-Hm for larch@yhetil.org; Fri, 23 Sep 2022 22:08:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obuZs-0001pY-QR for emacs-orgmode@gnu.org; Fri, 23 Sep 2022 22:07:36 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:37557) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obuZq-0004wE-Ua for emacs-orgmode@gnu.org; Fri, 23 Sep 2022 22:07:36 -0400 Received: by mail-pj1-x1032.google.com with SMTP id o99-20020a17090a0a6c00b002039c4fce53so7479461pjo.2 for ; Fri, 23 Sep 2022 19:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=C3zIcDnjqjjIKKtwNkRiX8IHkSV2TJHNSWef7uTc6LY=; b=M7fweIjACHsrwXKj+oOvWDPmbZTjZEZvJSEnOuhiPiWYhNoAd3GtIJA8McVf36sxWh eEWn+IUPMKoFucDjjpXevm2C1/oH+a2l0n/zo0fmQlcAJrUWqdMyVL/r98UKHPAseGHY 3aDFR3FR8eidxd4kEzmG44We2W2UPt22ViihXrQZWivWvQs4sr8zNnJ5G3Yojcr9t8kn 7/XVZ7/GXg5BOTaVIQdxlOIcA8aqBbCV7i5IO7e4cm5iuwf+W3LG0OCP5Jt5q1LMNb8R N/ZzIG9C5Aaiq7PjF5GMNuqqnv/dwx/78wlsLG0h2SO9ZprwjrZg1cILXYSHFI+ja/fl j/PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=C3zIcDnjqjjIKKtwNkRiX8IHkSV2TJHNSWef7uTc6LY=; b=1Jk7ERI9h47b0SFjHI4LAIj/IYR0OVxn0iBMNw7RKqYKpQkQBeKufoyvNg8JlFDsCx Eg7bsylWjyTben15eWxyWZfdJpJr71nwhl8g2T0jBKOE+CfAA5oWElQlyKdxFe0BXu+A vRRsIrekUavhXAKhswyoEkkihHB+ZKwTHRgwoFzsa365x4dmUK9kAof3BzxZGVmh8dvv rCtqDjhPs5L+4sApTjxsWWl/m6DWntHbWBr6udK9yQ/4tTLK/m/PG4SGe4A6bfhsAl7Q YeLNoObBKbDtn/vtaFe9tAf6Vh6ZFAgeAlMCp6TkqY6VhzmzkOhbMPcNwDSoZ2OstW98 jcng== X-Gm-Message-State: ACrzQf3DcLprJr/GvF7Wr/cxji7NYZJ8Hy8nhQtRSHRPN2tQPs5Koi4S iM9ZVCQh1m4OQsfBy5SfCoE= X-Google-Smtp-Source: AMsMyM6focFqEGMXRb8RvbQg7U3kYNT4N2RL0eMCbsAV/7Kh4OA/7REImJxfpIAWbxBLjw5d0fgXUQ== X-Received: by 2002:a17:90b:33d2:b0:203:15e7:1571 with SMTP id lk18-20020a17090b33d200b0020315e71571mr24233148pjb.186.1663985253553; Fri, 23 Sep 2022 19:07:33 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id r24-20020a63d918000000b00419ab8f8d2csm6254496pgg.20.2022.09.23.19.07.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Sep 2022 19:07:32 -0700 (PDT) From: Ihor Radchenko To: Guillaume MULLER Cc: emacs-orgmode@gnu.org Subject: Re: Opening of links In-Reply-To: <563301a7-1ad2-e155-636e-a2b8814b608d@emse.fr> References: <563301a7-1ad2-e155-636e-a2b8814b608d@emse.fr> Date: Sat, 24 Sep 2022 10:08:24 +0800 Message-ID: <87wn9t5xt3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1032.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663985295; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=C3zIcDnjqjjIKKtwNkRiX8IHkSV2TJHNSWef7uTc6LY=; b=jQ7UphdObtot/Z+K8MH2MyCNRMCVhwC8Aric2AhHLqLVpkvG/x7CpsRi01okIDnaHzHp5c faUWkk8VR1Kzvrepo0Vk58OErBxYfUGxKzrTt7r2J6mVvjV1ehuOwHOzMAhKbzLmn8BidU uxc8siqRMCj4Phy6YqOyDSWcoJP4v5XN1HjP8Ybbw+V9ZLdpM9oeSBclrdyg0tCJt64Ndf uMOvnK/063V6/4G79tcohIu8ju3YvhLpg8TAoucE3vcil68B/QPdAucZNrmv2LRr7yLOb2 6t9LpG1TYH+ryHXv17JwFwIBt1V7nAM3itBprOswX4YJRR5nDnCCXegruJrklQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663985295; a=rsa-sha256; cv=none; b=R8fd1B0fuIdoggxMvp/KxRcRRGnvWJGjt0rFVtDqdKY2vDkhzjGmlGaefZV79lfirUzN5j waMmZ4fkywZn7fO6c2k8vqJcXM72ERYhacOrRv1uOVyB9aqd3tgRTRAp/B5OFmGW3Oq9wi C8Rlp0korpnhcmwh5fA7ADwEJ3qPE0h5WLJHjgRscDKaHyq8vbogB+hf++ig1FePjq3Gna 687BJBClu8QLl1VtaFJkQPLVml9ZaUd+IsAoytBM3hrpFuZL63sUKlRAD90c5GB/ybMtZO um6vvipAMCIj8zpg+ItmZ4AelqqvoicO7fsqomsXMZroZBwFWUxebm6qDCIYMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=M7fweIjA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.85 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=M7fweIjA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 81BF08368 X-Spam-Score: -6.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: M6f20UfbLfOb Guillaume MULLER writes: > + [[file:~/test.pdf][PDF 1]] > -------------- > > When I click on the link with mouse1, the document is opened in Calibre. When I use mouse3, the document is opened in Emacs. I get a similar behavior with org-attached PDF documents: using 'o' will open them in Calibre, 'O' in Emacs. > > Such a behavior for mouse1/'o' raises 2 questions: > > - My OS settings are configured so that PDFs are opened in Evince. I configured this with "xfce4-settings-manager > Default Applications" (which runs "xfce4-mime-settings" under the hood) and it can be verified with "xdg-open test.pdf" or by opening Thunar and clicking on "test.pdf". > So, where in the world does org-mode/Emacs finds that it should use Calibre instead of Evince? > > - Now, I would like to circumvent this global OS behavior, so that Emacs itself would be used specifically to open PDF links in files I open in Emacs. When I was using Vanilla Emacs, I was advised to use pdf-tools, and given a config that was working. I translated that into my DoomEmacs config.org as follows: > (use-package! pdf-tools > :magic ("%PDF" . pdf-view-mode) > :config > (pdf-tools-install :no-query) > ) > But apparently it does not override org's (default) behavior of opening PDF file with external tools. > Is there See https://orgmode.org/manual/Handling-Links.html#Handling-Links (search org-open-at-point). The app selection is controlled by org-file-apps customization. > Sorry for these (probably very) basic questions, but I could not find anything relevant on the web (or I haven't found the correct keywords...). I would be very grateful of any help! No problem. This mailing list is open to all Org-related staff, including basic questions. Do not hesitate to participate in the discussion or ask anything. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92