[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: How to open pdf file links with evince under linux?..
From: |
Matt Lundin |
Subject: |
[Orgmode] Re: How to open pdf file links with evince under linux?.. |
Date: |
Mon, 29 Mar 2010 13:31:02 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi Daniel,
Daniel Martins <address@hidden> writes:
> my values are
>
> org-file-apps is a variable defined in `org.el'.
> Its value is
> ((auto-mode . emacs)
> ("\\.x?html?\\'" . default))
It looks as if you have changed this variable somehow. The default value
is:
((auto-mode . emacs)
("\\.mm\\'" . default)
("\\.x?html?\\'" . default)
("\\.pdf\\'" . default))
With the default settings you have two options:
1. Add the following line to ~/.mailcap (user only) or /etc/mailcap
(typical location of system-wide settings on Linux).
application/pdf; evince %s
2. Change the default settings per Jan's instructions:
> > 2010/3/23 Jan Böcker <address@hidden>
> >
> > But we can tell Org directly what to do with PDF files: take a
> > look at the variable org-file-apps (M-x customize-variable
> > org-file-apps).
> >
> > Each entry in this list consists of (selector, action) pairs where
> > the action tells Org how to open a file, and the selector (in most
> > cases a regular expression matched against the file name)
> > specifies what kind of files to open in this way.
> >
> > Add the following entry:
> >
> > Extension: \.pdf\'
> > Command: evince %s
> >
> > Links to PDF files should now open in evince.
> which does not help very much since i think is scary to change the
> auto-mode in emacs
Changing the pdf setting in this way does nothing to the
auto-mode-alist. The auto-mode cons cell simply instructs org-mode to
open any file matching a regexp in auto-mode-alist within emacs.
> I have the same annoying problem reported by Jan
Could you explain what problem you mean here? I believe it was Leo who
reported the problem, while Jan offered a solution.
Best,
Matt