emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Colin Baxter <m43cap@yandex.com>
To: Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
Cc: "Liste-emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: pdf files with openwith only, and only this.
Date: Thu, 04 Jul 2019 12:00:07 +0100	[thread overview]
Message-ID: <87ef36xdxk.fsf@yandex.com> (raw)
In-Reply-To: <CAD-VTcHgYvfQjpS=NamanbKfBwOtvcQ0k9vJA3zx7TbA8+8SWQ@mail.gmail.com> (Joseph Vidal-Rosset's message of "Thu, 4 Jul 2019 12:41:56 +0200")

Dear Joseph,
>>>>> Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:

    > Hi the list, I do not want to use pdf-tools to view pdf in emacs,
    > I want only to use an external program (evince) to view pdf
    > files. Unfortunately, links to pdf do not work with openwith and
    > my emacs open on a pdf. I cannot delete pdft-tools that is a
    > dependency of org-ref that I am using. A solution for my setup
    > would be welcome.

Try this:

(add-hook 'org-mode-hook
           '(lambda ()
            (delete '("\\.pdf\\'" . default) org-file-apps)
            (add-to-list 'org-file-apps '("\\.pdf\\'" . "evince %s"))))

Best wishes,
 
Colin Baxter
www.Colin-Baxter.com

  reply	other threads:[~2019-07-04 11:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-04 10:41 pdf files with openwith only, and only this Joseph Vidal-Rosset
2019-07-04 11:00 ` Colin Baxter [this message]
2019-07-04 11:23   ` Joseph Vidal-Rosset
2019-07-04 11:38     ` Colin Baxter
2019-07-04 11:44     ` John Kitchin
2019-07-04 12:48       ` Colin Baxter
2019-07-04 13:25       ` Joseph Vidal-Rosset
2019-07-04 18:05         ` John Kitchin
2019-07-04 23:15         ` Tim Cross
2019-07-05  9:41           ` Joseph Vidal-Rosset

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=87ef36xdxk.fsf@yandex.com \
    --to=m43cap@yandex.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=joseph.vidal.rosset@gmail.com \
    /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).