From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: How to open pdf file links with evince under linux?.. Date: Mon, 29 Mar 2010 13:31:02 -0400 Message-ID: <87bpe7f31l.fsf@fastmail.fm> References: <4e3ad401003230217v78fc1112o5ff1b4fff7468472@mail.gmail.com> <4BA92838.1010101@jboecker.de> <6ac505ad1003290820k2f08b414p3ec678696c3651ef@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwInG-00081E-5x for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 13:30:30 -0400 Received: from [140.186.70.92] (port=55209 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwInE-00080x-8B for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 13:30:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwInC-000353-Cj for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 13:30:28 -0400 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:43972) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwInC-00034q-AQ for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 13:30:26 -0400 In-Reply-To: <6ac505ad1003290820k2f08b414p3ec678696c3651ef@mail.gmail.com> (Daniel Martins's message of "Mon, 29 Mar 2010 12:20:49 -0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniel Martins Cc: emacs-orgmode@gnu.org, Leo Alekseyev Hi Daniel, Daniel Martins writes: > my values are > > org-file-apps is a variable defined in `org.el'. > Its value is > ((auto-mode . emacs) > =C2=A0("\\.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=C3=B6cker > > > > 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). > >=20=20=20=20 > > 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. > >=20=20=20=20 > > Add the following entry: > >=20=20=20=20 > > Extension: =C2=A0 =C2=A0 =C2=A0\.pdf\' > > Command: =C2=A0 =C2=A0 =C2=A0 =C2=A0evince %s > >=20=20=20=20 > > 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