From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: external link to openoffice.org file Date: Sun, 20 Sep 2009 15:11:13 -0300 Message-ID: <4ab67046.1408c00a.276c.5ffb@mx.google.com> References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MpQsh-000435-7N for emacs-orgmode@gnu.org; Sun, 20 Sep 2009 14:11:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MpQsa-0003wZ-Ky for emacs-orgmode@gnu.org; Sun, 20 Sep 2009 14:11:25 -0400 Received: from [199.232.76.173] (port=54210 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MpQsa-0003wW-Hc for emacs-orgmode@gnu.org; Sun, 20 Sep 2009 14:11:20 -0400 Received: from mail-yw0-f172.google.com ([209.85.211.172]:52531) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MpQsa-0004L8-99 for emacs-orgmode@gnu.org; Sun, 20 Sep 2009 14:11:20 -0400 Received: by ywh2 with SMTP id 2so3021649ywh.27 for ; Sun, 20 Sep 2009 11:11:19 -0700 (PDT) In-Reply-To: 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: Christoph Herzog Cc: emacs-orgmode@gnu.org At Sun, 20 Sep 2009 17:28:54 +0200, Christoph Herzog wrote: > > Having a poor understanding of emacs because I started to use it with > org-mode recently, I wonder whether there is a better way to make > external links to openoffice.org files than > [[shell: ooffice -writer /path/to/document.odt]] > > I also wonder whether it is possible to attach other than > emacs-compatible files? > > Christoph > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode I often put some links to .odt and .doc files in my org files. At first i created a link type for open office with #+LINK: OO elisp:(abrir-no-openoffice "%s") where the function "abrir-no-openoffice" is defined as (defun abrir-no-openoffice (documento) (start-process-shell-command "openoffice" "*scratch*" (concat "openoffice.org -o " documento))) With this i can simple use [[OO:path_to_some_file_openoffice_understands][Description]], but I still have to answer "yes" to open the file, since org-mode will execute a shell function. Only later I realized that this is not necessary. I can simple use [[some_file][Description]] and org-mode will use the information in the mailcap file to open the file with the correct program, in this case openoffice. -- Darlan Cavalcante Moreira darcamo@gmail.com