emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Oleh <ohwoeowho@gmail.com>
To: Scott Randby <srandby@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Setting the PDF viewer
Date: Sat, 26 Oct 2013 17:26:54 +0200	[thread overview]
Message-ID: <CAA01p3osJ-wqxsHvz0uQRXSc5iY4VOQf0PPm=4NB0qHim_SHmg@mail.gmail.com> (raw)
In-Reply-To: <526BDC6D.3070209@gmail.com>

The variable to set is `org-file-apps'.
Here's what I have currently:

(setq org-file-apps '((auto-mode . emacs)
		      ("\\.x?html?\\'" . "firefox %s")
		      ("\\.pdf\\'" . "evince \"%s\"")
                      ("\\.pdf::\\([0-9]+\\)\\'" . "evince \"%s\" -p %1")
                      ("\\.pdf.xoj" . "xournal %s")))

Just change evince to your favorite viewer.
And make sure that you're calling `org-return' to open (it's bound to C-m).

Oleh

On Sat, Oct 26, 2013 at 5:14 PM, Scott Randby <srandby@gmail.com> wrote:
> If I have a file:./paper.pdf link in an Org document, the PDF opens
> using GV when I click on the link. I like GV, but it doesn't support
> links. How do I change the PDF viewer for file:./paper.pdf external
> links?
>
> Scott Randby
>

  reply	other threads:[~2013-10-26 15:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-26 15:14 Setting the PDF viewer Scott Randby
2013-10-26 15:26 ` Oleh [this message]
2013-10-26 15:57   ` Scott Randby

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='CAA01p3osJ-wqxsHvz0uQRXSc5iY4VOQf0PPm=4NB0qHim_SHmg@mail.gmail.com' \
    --to=ohwoeowho@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=srandby@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).