emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Setting the PDF viewer
@ 2013-10-26 15:14 Scott Randby
  2013-10-26 15:26 ` Oleh
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Randby @ 2013-10-26 15:14 UTC (permalink / raw)
  To: org-mode mailing list

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting the PDF viewer
  2013-10-26 15:14 Setting the PDF viewer Scott Randby
@ 2013-10-26 15:26 ` Oleh
  2013-10-26 15:57   ` Scott Randby
  0 siblings, 1 reply; 3+ messages in thread
From: Oleh @ 2013-10-26 15:26 UTC (permalink / raw)
  To: Scott Randby; +Cc: org-mode mailing list

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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting the PDF viewer
  2013-10-26 15:26 ` Oleh
@ 2013-10-26 15:57   ` Scott Randby
  0 siblings, 0 replies; 3+ messages in thread
From: Scott Randby @ 2013-10-26 15:57 UTC (permalink / raw)
  To: Oleh; +Cc: org-mode mailing list

On 10/26/2013 11:26 AM, Oleh wrote:
> 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
>

This is exactly what I need and it has the added benefit of showing me
how to open XOJ files in Xournal via an external link in an Org
file. Many thanks.

Scott

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-26 15:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-26 15:14 Setting the PDF viewer Scott Randby
2013-10-26 15:26 ` Oleh
2013-10-26 15:57   ` Scott Randby

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