Hi Daniel, Daniel Martins <daniel...@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.boec...@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 _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode