emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Guillaume MULLER <guillaume.muller@emse.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: Opening of links
Date: Sat, 24 Sep 2022 10:08:24 +0800	[thread overview]
Message-ID: <87wn9t5xt3.fsf@localhost> (raw)
In-Reply-To: <563301a7-1ad2-e155-636e-a2b8814b608d@emse.fr>

Guillaume MULLER <guillaume.muller@emse.fr> 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


  reply	other threads:[~2022-09-24  2:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-23 14:49 Opening of links Guillaume MULLER
2022-09-24  2:08 ` Ihor Radchenko [this message]
2022-09-24 11:49 ` Max Nikulin
2022-09-25 11:06   ` Max Nikulin

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.orgmode.org/

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

  git send-email \
    --in-reply-to=87wn9t5xt3.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=guillaume.muller@emse.fr \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).