From: Matt Lundin <mdl@imapmail.org>
To: Daniel Martins <danielemc@gmail.com>
Cc: emacs-orgmode@gnu.org, Leo Alekseyev <dnquark@gmail.com>
Subject: Re: How to open pdf file links with evince under linux?..
Date: Mon, 29 Mar 2010 13:31:02 -0400 [thread overview]
Message-ID: <87bpe7f31l.fsf@fastmail.fm> (raw)
In-Reply-To: <6ac505ad1003290820k2f08b414p3ec678696c3651ef@mail.gmail.com> (Daniel Martins's message of "Mon, 29 Mar 2010 12:20:49 -0300")
Hi Daniel,
Daniel Martins <danielemc@gmail.com> 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 <jan.boecker@jboecker.de>
> >
> > 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
prev parent reply other threads:[~2010-03-29 17:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-23 9:17 How to open pdf file links with evince under linux? Leo Alekseyev
2010-03-23 20:44 ` Jan Böcker
2010-03-29 15:20 ` Daniel Martins
2010-03-29 17:31 ` Matt Lundin [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bpe7f31l.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=danielemc@gmail.com \
--cc=dnquark@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.