From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Wish list: Storing links and enabling MIME actions on files Date: Thu, 27 Sep 2007 20:01:41 +0200 Message-ID: <271583338c2b3481ef076799aea32e8d@science.uva.nl> References: <87k5qcxdml.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iaxh8-0005n9-3W for emacs-orgmode@gnu.org; Thu, 27 Sep 2007 14:02:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iaxh7-0005mx-KM for emacs-orgmode@gnu.org; Thu, 27 Sep 2007 14:02:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iaxh7-0005mu-HC for emacs-orgmode@gnu.org; Thu, 27 Sep 2007 14:02:37 -0400 Received: from wa-out-1112.google.com ([209.85.146.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iaxh7-0006tw-10 for emacs-orgmode@gnu.org; Thu, 27 Sep 2007 14:02:37 -0400 Received: by wa-out-1112.google.com with SMTP id k34so3313164wah for ; Thu, 27 Sep 2007 11:02:34 -0700 (PDT) In-Reply-To: <87k5qcxdml.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org On Sep 27, 2007, at 18:43, Bernt Hansen wrote: > Hi all, > > I occasionally receive documents (like PDF files) in emails and I want > to just save some of the attachments to a local directory for reference > in my org file (usually because the email contained half a dozen > documents and only 1 is interesting.) > > I'd like to be able to link to the file easily for my org document and > have it invoke the appropriate viewer as defined in my MIME setup. > Gnus > correctly opens the PDF attachment for viewing. I can link to the Gnus > email and then open the right attachment - but I need to remember which > attachment it is of the 6 in the mail. > > When I create a link like [[file:~/path/to/some-long-filename.pdf]] > C-c C-o on the link just opens the raw PDF text in another buffer which > isn't useful -- sorry I can't read raw PDF source ;) > > I'm wondering if there is a way to create a [[file:...]] link easily by > browsing for the file instead of typing it in -- long case sensitive > files with blanks are a bit of a pain here -- and having the file > opened > by the appropriate viewer when it's not text. `C-u C-c C-l' will insert a link to a local file, using file name completion. For the rest, like Bastien says, check the mailcap setup. Or customize the variable org-file-apps or one of its opeating-system-dependent equivalents. - Carsten